From 36250219d621dd68dc2d0d515e017ef38bb986f0 Mon Sep 17 00:00:00 2001 From: Tomasz Kojm Date: Thu, 5 Aug 2004 09:46:54 +0000 Subject: [PATCH] libclamav: pe: pass virtual instead of raw address of entry point to petite_inflate2x_1to9 git-svn: trunk@727 --- clamav-devel/ChangeLog | 5 +++++ clamav-devel/libclamav/pe.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/clamav-devel/ChangeLog b/clamav-devel/ChangeLog index 391c5cfbe..6d3ca537d 100644 --- a/clamav-devel/ChangeLog +++ b/clamav-devel/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 5 11:41:00 CEST 2004 (tk) +---------------------------------- + * libclamav: pe: pass virtual instead of raw address of entry point to + petite_inflate2x_1to9 + Thu Aug 5 08:44:51 BST 2004 (njh) ---------------------------------- * clamav-milter: Handle more variants of gethostbyname_r diff --git a/clamav-devel/libclamav/pe.c b/clamav-devel/libclamav/pe.c index 8cdc165fc..d5199fb6f 100644 --- a/clamav-devel/libclamav/pe.c +++ b/clamav-devel/libclamav/pe.c @@ -755,7 +755,8 @@ int cli_scanpe(int desc, const char **virname, long int *scanned, const struct c } switch(petite_inflate2x_1to9(dest, min, max - min, section_hdr, - nsections, EC32(optional_hdr.ImageBase), ep, ndesc, + nsections, EC32(optional_hdr.ImageBase), + EC32(optional_hdr.AddressOfEntryPoint), ndesc, found, EC32(optional_hdr.DataDirectory[2].VirtualAddress), EC32(optional_hdr.DataDirectory[2].Size))) { case 1: