Only check specific RIFF files. Lots of broken software out there producing bad files.

git-svn: trunk@1329
remotes/push_mirror/metadata
Trog 21 years ago
parent 20e236954d
commit 7fd4d69b72
  1. 5
      clamav-devel/ChangeLog
  2. 8
      clamav-devel/libclamav/special.c

@ -1,3 +1,8 @@
Tue Feb 8 14:45:05 GMT 2005 (trog)
-----------------------------------
* libclamav/special.c: Only check specific RIFF files. Lots of broken software out there
producing bad files.
Tue Feb 8 09:03:19 GMT 2005 (njh)
----------------------------------
* clamav-milter: Don't use clamd's SESSION command

@ -224,6 +224,12 @@ int cli_check_riff_exploit(int fd)
return 0;
}
if (memcmp(&form_type, "ACON", 4) != 0) {
/* Only scan MS animated icon files */
/* There is a *lot* of broken software out there that produces bad RIFF files */
return 0;
}
chunk_size = riff_endian_convert_32(chunk_size, big_endian);
do {
@ -234,6 +240,6 @@ int cli_check_riff_exploit(int fd)
if (offset < chunk_size) {
retval = 2;
};
}
return retval;
}

Loading…
Cancel
Save