Browse code

libclamav: pe: pass virtual instead of raw address of entry point to petite_inflate2x_1to9

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

Tomasz Kojm authored on 2004/08/05 18:46:54
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Thu Aug  5 11:41:00 CEST 2004 (tk)
2
+----------------------------------
3
+  * libclamav: pe: pass virtual instead of raw address of entry point to
4
+	       petite_inflate2x_1to9
5
+
1 6
 Thu Aug  5 08:44:51 BST 2004 (njh)
2 7
 ----------------------------------
3 8
   * clamav-milter:	Handle more variants of gethostbyname_r
... ...
@@ -755,7 +755,8 @@ int cli_scanpe(int desc, const char **virname, long int *scanned, const struct c
755 755
 	    }
756 756
 
757 757
 	    switch(petite_inflate2x_1to9(dest, min, max - min, section_hdr,
758
-		    nsections, EC32(optional_hdr.ImageBase), ep, ndesc,
758
+		    nsections, EC32(optional_hdr.ImageBase),
759
+		    EC32(optional_hdr.AddressOfEntryPoint), ndesc,
759 760
 		    found, EC32(optional_hdr.DataDirectory[2].VirtualAddress),
760 761
 		    EC32(optional_hdr.DataDirectory[2].Size))) {
761 762
 		case 1: