fix possible integer overflow in MEW related code

git-svn: trunk@3376
remotes/push_mirror/metadata
Tomasz Kojm 18 years ago
parent 2c4071f90a
commit 50d244022a
  1. 5
      ChangeLog
  2. 1
      libclamav/pe.c

@ -1,3 +1,8 @@
Thu Dec 6 15:22:27 CET 2007 (tk)
---------------------------------
* libclamav/pe.c: fix possible integer overflow in MEW related code
Reported by iDefense [IDEF2842]
Thu Dec 6 15:19:53 CET 2007 (tk)
---------------------------------
* libclamav/sis.c: fix error path descriptor leak (bb#704)

@ -1116,6 +1116,7 @@ int cli_scanpe(int desc, cli_ctx *ctx)
cli_dbgmsg("MEW: ssize %08x dsize %08x offdiff: %08x\n", ssize, dsize, offdiff);
CLI_UNPSIZELIMITS("MEW", MAX(ssize, dsize));
CLI_UNPSIZELIMITS("MEW", MAX(ssize + dsize, exe_sections[i + 1].rsz));
/* allocate needed buffer */

Loading…
Cancel
Save