From 56ed3ffdd6d1252508058994f617ee47e5b19f07 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 6 Sep 2020 23:09:57 +0100 Subject: [PATCH] [Minor] Improve exe files detection Issue: #3481 --- lualib/lua_magic/patterns.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index a19aba03c..371d99a5a 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -98,13 +98,13 @@ local patterns = { { string = [[MZ]], relative_position = 0, - weight = 10, + weight = 15, }, -- PE part { string = [[PE\x{00}\x{00}]], position = {'>=', 0x3c + 4}, - weight = 40, + weight = 15, } } }, -- 2.39.5