Browse code

bb#1909

aCaB authored on 2010/05/19 19:23:44
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Wed May 19 12:21:02 CEST 2010 (acab)
2
+------------------------------------
3
+ * libclamav/7z/Archive/7z/7zIn.c: fix possible(?) null dereference reported
4
+		 		by clang (bb#1909)
5
+
1 6
 Wed May 19 12:19:27 CEST 2010 (acab)
2 7
 ------------------------------------
3 8
  * libclamav/pe_icons.c: properly round down when scaling (bb#2031)
... ...
@@ -647,7 +647,7 @@ static SRes SzReadSubStreamsInfo(
647 647
     RINOM(*digests);
648 648
   }
649 649
 
650
-  for (i = 0; i < numFolders; i++)
650
+  for (i = 0; i < numFolders && *unpackSizes; i++)
651 651
   {
652 652
     /*
653 653
     v3.13 incorrectly worked with empty folders