]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Lua_content: Similar hang fix
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Jan 2020 17:47:12 +0000 (17:47 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Jan 2020 17:47:12 +0000 (17:47 +0000)
lualib/lua_content/pdf.lua

index b3fa03f28484f0d8890a9d9b41eb2ddfcd4f921f..fa3aee501d4c05e9b8a560b0be3df182d67dea34 100644 (file)
@@ -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!