fix possible infinite loop

git-svn: trunk@1087
remotes/push_mirror/metadata
Trog 21 years ago
parent fb79b576d3
commit 8c601f9fa1
  1. 4
      clamav-devel/ChangeLog
  2. 6
      clamav-devel/libclamav/vba_extract.c

@ -1,3 +1,7 @@
Fri Nov 12 15:31:15 GMT 2004 (trog)
-----------------------------------
* libclamav/vba_extract.c: fix possible infinite loop
Fri Nov 12 09:44:23 GMT 2004 (njh)
----------------------------------
* libclamav/mbox.c: Draft of RFC1341 support is now on by default.

@ -827,6 +827,12 @@ static char *ppt_stream_iter(int fd)
}
ppt_print_atom_header(&atom_header);
if (atom_header.length <= 0) {
cli_rmdirs(out_dir);
free(out_dir);
return NULL;
}
if (atom_header.type == 0x1011) {
if (cli_readn(fd, &ole_id, 4) != 4) {
cli_dbgmsg("read ole_id failed\n");

Loading…
Cancel
Save