From 8210f952a0d8ba1125cba8ebdab473ac665da348 Mon Sep 17 00:00:00 2001 From: aCaB Date: Tue, 31 Aug 2004 08:50:41 +0000 Subject: [PATCH] Fixed possible infloops in petite git-svn: trunk@813 --- clamav-devel/ChangeLog | 4 ++++ clamav-devel/libclamav/petite.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/clamav-devel/ChangeLog b/clamav-devel/ChangeLog index 596e83358..b1b02058f 100644 --- a/clamav-devel/ChangeLog +++ b/clamav-devel/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 31 10:46:48 CEST 2004 (acab) +------------------------------------ + * libclamav/petite.c: Fixed inflooping (thx Christoph) + Mon Aug 30 22:44:30 CEST 2004 (tk) ---------------------------------- * configure: Add --disable-gethostbyname_r. Try enabling it if clamav-milter diff --git a/clamav-devel/libclamav/petite.c b/clamav-devel/libclamav/petite.c index 9d8f30a5f..e0885a9e8 100644 --- a/clamav-devel/libclamav/petite.c +++ b/clamav-devel/libclamav/petite.c @@ -138,7 +138,7 @@ int petite_inflate2x_1to9(char *buf, uint32_t minrva, int bufsz, struct pe_image for (t = 0; t < j-1 ; t++) { uint32_t trva, trsz, tvsz; - if ( usects[t].rva < usects[t+1].rva ) + if ( usects[t].rva <= usects[t+1].rva ) continue; trva = usects[t].rva; trsz = usects[t].rsz;