Browse code

fix handling of compressed multiple language files (bb#42)

git-svn: trunk@2337

Tomasz Kojm authored on 2006/10/06 05:49:59
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Oct  5 22:46:19 CEST 2006 (tk)
2
+----------------------------------
3
+  * libclamav/sis.c: fix handling of compressed multiple language files (bb#42)
4
+
1 5
 Fri Sep 29 21:29:33 BST 2006 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/mbox.c:	More fix compilation error when --experimental is not
... ...
@@ -252,7 +252,7 @@ static int sis_extract_simple(int fd, char *mfile, uint32_t length, uint32_t off
252 252
 
253 253
 	if(compressed) {
254 254
 	    csize = (uLong) filelen;
255
-	    filelen = cli_readint32(mfile + offset + 24 + 8 * (i + 1));
255
+	    filelen = cli_readint32(mfile + offset + 24 + 4 * i + 8 * nlangs);
256 256
 	    osize = (uLongf) filelen;
257 257
 
258 258
 	    if(!osize) {