Browse code

fix debug message

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@680 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/07/21 11:18:50
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Jul 21 04:14:34 CEST 2004 (tk)
2
+----------------------------------
3
+  * libclamav: pe: fix debug message
4
+
1 5
 Tue Jul 20 17:05:38 BST 2004 (trog)
2 6
 -----------------------------------
3 7
   * libclamav/chmunpack.c: remove the uncompressed temp file
... ...
@@ -429,7 +429,7 @@ int cli_scanpe(int desc, const char **virname, long int *scanned, const struct c
429 429
 
430 430
     /* simple sanity check */
431 431
     if(!broken && EC32(section_hdr[nsections - 1].PointerToRawData) + EC32(section_hdr[nsections - 1].SizeOfRawData) > sb.st_size) {
432
-	cli_dbgmsg("Possibly broken PE file - Section %d out of file (Offset@ %d, Rsize %d, Total filesize %d, EP@ %d)\n", i, EC32(section_hdr[i].PointerToRawData), EC32(section_hdr[i].SizeOfRawData), sb.st_size, ep);
432
+	cli_dbgmsg("Possibly broken PE file - Section %d out of file (Offset@ %d, Rsize %d, Total filesize %d, EP@ %d)\n", nsections - 1, EC32(section_hdr[nsections - 1].PointerToRawData), EC32(section_hdr[nsections - 1].SizeOfRawData), sb.st_size, ep);
433 433
 	broken = 1;
434 434
     }
435 435