From be8b084e64a49192111a8809f4ef8c497b085799 Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Mon, 23 Mar 2015 13:04:54 -0400 Subject: [PATCH] bb#11284 - fixed integer underflow in detecting W32.Polipos.A method --- libclamav/pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclamav/pe.c b/libclamav/pe.c index 43017ee11..54d7d673c 100644 --- a/libclamav/pe.c +++ b/libclamav/pe.c @@ -1642,7 +1642,7 @@ int cli_scanpe(cli_ctx *ctx) if(exe_sections[0].rsz > CLI_MAX_ALLOCATION) break; - if(!exe_sections[0].rsz) + if(exe_sections[0].rsz < 5) break; if(!(code=fmap_need_off_once(map, exe_sections[0].raw, exe_sections[0].rsz))) break;