Browse code

remove detection of Suspect.Zip and Exploit.Zip.ModifiedHeaders (bb#997)

git-svn: trunk@3811

Tomasz Kojm authored on 2008/04/28 20:39:03
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Mon Apr 28 12:37:31 CEST 2008 (tk)
2
+----------------------------------
3
+  * libclamav/unzip.c: remove detection of Suspect.Zip and
4
+		       Exploit.Zip.ModifiedHeaders (bb#997)
5
+
1 6
 Thu Apr 24 20:02:50 CEST 2008 (acab)
2 7
 ------------------------------------
3 8
   * clamav-milter: accept -i for --pidfile as advertised - bb#988
... ...
@@ -389,25 +389,6 @@ static unsigned int lhdr(uint8_t *zip, uint32_t zsize, unsigned int *fu, unsigne
389 389
     zsize-=csize;
390 390
   }
391 391
 
392
-  if(ch && !LH_flen) {
393
-    cli_dbgmsg("cli_unzip: found noname file\n");
394
-    *ctx->virname = "Suspect.Zip";
395
-    *ret = CL_VIRUS;
396
-    return 0;
397
-  }
398
-  if(ch && !LH_usize && LH_crc32) {
399
-    cli_dbgmsg("Zip: Broken file or modified information in local header part of archive\n");
400
-    *ctx->virname = "Exploit.Zip.ModifiedHeaders";
401
-    * ret = CL_VIRUS;
402
-    return 0;
403
-  }
404
-  if(ch && !LH_csize && LH_usize) {
405
-    cli_dbgmsg("Zip: Malformed file (csize == 0 but usize != 0)\n");
406
-    *ctx->virname = "Suspect.Zip";
407
-    *ret = CL_VIRUS;
408
-    return 0;
409
-  }
410
-
411 392
   if(LH_flags & F_USEDD) {
412 393
     if(zsize<12) {
413 394
       cli_dbgmsg("cli_unzip: lh - data desc out of file\n");