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