commit 83f1865: [Minor] Lua_content: Similar hang fix
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jan 13 17:49:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-01-13 17:47:12 +0000
URL: https://github.com/rspamd/rspamd/commit/83f18659d38744f13193bc8fe538e85680090aab (HEAD -> master)
[Minor] Lua_content: Similar hang fix
---
lualib/lua_content/pdf.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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!
More information about the Commits
mailing list