Browse code

Added support for FSG 1.3

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@776 77e5149b-7576-45b1-b177-96237e5ba77b

aCaB authored on 2004/08/21 21:10:26
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Aug 21 14:07:47 CEST 2004 (acab)
2
+------------------------------------
3
+  * libclamav/pe.c: Added support for FSG 1.3
4
+
1 5
 Sat Aug 21 12:59:43 BST 2004 (njh)
2 6
 ----------------------------------
3 7
   * libclamav:	Changed the handling of miltipart messages, that is scanning
... ...
@@ -831,7 +831,8 @@ int cli_scanpe(int desc, const char **virname, long int *scanned, const struct c
831 831
 		}
832 832
 
833 833
 		/* Better not increasing buff size any further, let's go the hard way */
834
-		oldep = EC32(optional_hdr.AddressOfEntryPoint) + 0xda + 6 + cli_readint32(src+0xdc+oldep);
834
+		gp = 0xda + 6*(buff[16]=='\xe8');
835
+		oldep = EC32(optional_hdr.AddressOfEntryPoint) + gp + 6 + cli_readint32(src+gp+2+oldep);
835 836
 		cli_dbgmsg("FSG: found old EP @%x\n", oldep);
836 837
 
837 838
 		tempfile = cli_gentemp(NULL);