Fixed possible infloops in petite

git-svn: trunk@813
remotes/push_mirror/metadata
aCaB 21 years ago
parent 25c90ceda3
commit 8210f952a0
  1. 4
      clamav-devel/ChangeLog
  2. 2
      clamav-devel/libclamav/petite.c

@ -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

@ -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;

Loading…
Cancel
Save