git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@679 77e5149b-7576-45b1-b177-96237e5ba77b
Trog authored on 2004/07/21 01:07:15... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Tue Jul 20 17:05:38 BST 2004 (trog) |
|
2 |
+----------------------------------- |
|
3 |
+ * libclamav/chmunpack.c: remove the uncompressed temp file |
|
4 |
+ before scanning |
|
5 |
+ |
|
1 | 6 |
Tue Jul 20 16:18:13 BST 2004 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/message.c: Code tidy - remove overlapping strcpy |
... | ... |
@@ -577,7 +577,6 @@ static int read_chunk(int fd, off_t offset, uint32_t chunk_len, |
577 | 577 |
|
578 | 578 |
chunk_hdr->num_entries = (uint16_t)((((uint8_t const *)(chunk_hdr->chunk_data))[chunk_len-2] << 0) |
579 | 579 |
| (((uint8_t const *)(chunk_hdr->chunk_data))[chunk_len-1] << 8)); |
580 |
- /*chunk_hdr->num_entries = chm_endian_convert_32(chunk_hdr->num_entries);*/ |
|
581 | 580 |
} else if (memcmp(chunk_hdr->signature, "PMGI", 4) != 0) { |
582 | 581 |
goto abort; |
583 | 582 |
} |
... | ... |
@@ -929,6 +928,10 @@ static int chm_decompress_stream(int fd, const char *dirname, itsf_header_t *its |
929 | 929 |
cli_dbgmsg("re-open output failed\n"); |
930 | 930 |
goto abort; |
931 | 931 |
} |
932 |
+ |
|
933 |
+ /* Delete the file */ |
|
934 |
+ unlink(filename); |
|
935 |
+ |
|
932 | 936 |
while(entry) { |
933 | 937 |
if (entry->section != 1) { |
934 | 938 |
entry = entry->next; |