bb#11284 - fixed integer underflow in detecting W32.Polipos.A method

remotes/push_mirror/klin/altstr-yara
Kevin Lin 10 years ago
parent ddc1421955
commit be8b084e64
  1. 2
      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;

Loading…
Cancel
Save