do not report I/O error with encrypted zips

git-svn: trunk@1506
remotes/push_mirror/metadata
Tomasz Kojm 20 years ago
parent 5fabe557b8
commit a2a8d2d877
  1. 4
      clamav-devel/ChangeLog
  2. 2
      clamav-devel/libclamav/scanners.c

@ -1,3 +1,7 @@
Sat Apr 30 02:50:11 CEST 2005 (tk)
----------------------------------
* libclamav/scanners.c: do not report I/O error with encrypted zips
Fri Apr 29 03:19:44 CEST 2005 (tk)
----------------------------------
* shared/misc.c: improve isnumb() (thanks to NJH) and move it to misc.c

@ -450,7 +450,7 @@ static int cli_scanzip(int desc, const char **virname, long int *scanned, const
zzip_file_close(zfp);
if(size != zdirent.st_size) {
if(!encrypted && size != zdirent.st_size) {
cli_dbgmsg("Zip: Incorrectly decompressed (%d != %d)\n", size, zdirent.st_size);
ret = CL_EIO;
break;

Loading…
Cancel
Save