diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-13 17:47:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-13 17:47:12 +0000 |
commit | 83f18659d38744f13193bc8fe538e85680090aab (patch) | |
tree | 6c32dbe43ad2ace2f25fbefedf86a2ac37bd42ab /lualib/lua_content | |
parent | a1e2033433b5954638454b4435c3dbcd9e89c477 (diff) | |
download | rspamd-83f18659d38744f13193bc8fe538e85680090aab.tar.gz rspamd-83f18659d38744f13193bc8fe538e85680090aab.zip |
[Minor] Lua_content: Similar hang fix
Diffstat (limited to 'lualib/lua_content')
-rw-r--r-- | lualib/lua_content/pdf.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index b3fa03f28..fa3aee501 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! |