aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_content
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-13 17:47:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-13 17:47:12 +0000
commit83f18659d38744f13193bc8fe538e85680090aab (patch)
tree6c32dbe43ad2ace2f25fbefedf86a2ac37bd42ab /lualib/lua_content
parenta1e2033433b5954638454b4435c3dbcd9e89c477 (diff)
downloadrspamd-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.lua2
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!