From: Vsevolod Stakhov Date: Mon, 13 Jan 2020 17:47:12 +0000 (+0000) Subject: [Minor] Lua_content: Similar hang fix X-Git-Tag: 2.3~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83f18659d38744f13193bc8fe538e85680090aab;p=thirdparty%2Frspamd.git [Minor] Lua_content: Similar hang fix --- diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index b3fa03f284..fa3aee501d 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -695,7 +695,7 @@ local function offsets_to_blocks(starts, ends, out) } start_pos = start_pos + 1 end_pos = end_pos + 1 - elseif start_pos > end_pos then + elseif first > last then end_pos = end_pos + 1 else -- Not ordered properly!