From: Vsevolod Stakhov Date: Mon, 4 Jan 2021 16:10:02 +0000 (+0000) Subject: [Minor] Lua_magic: Minor changes X-Git-Tag: 2.7~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5bf9ae28d5d1a06c04da4af303fa8edb2b1f098;p=rspamd.git [Minor] Lua_magic: Minor changes --- diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index fb0a4b7c2..15d8527fd 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -476,17 +476,20 @@ exports.pe_part_heuristic = function(input, log_obj, pos, part) return end + -- pe header should start at the offset that is placed in msdos header at position 60..64 local pe_ptr_bin = input:sub(60, 64) if #pe_ptr_bin ~= 4 then return end - local pe_ptr = rspamd_util.unpack("