git-svn: trunk@3130
Tomasz Kojm authored on 2007/07/11 06:31:28... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Tue Jul 10 22:36:35 CEST 2007 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/ole2_extract.c: faster handling of corrupted files (bb#561) |
|
4 |
+ Reported by Victor Stinner, patch from Trog |
|
5 |
+ |
|
1 | 6 |
Tue Jul 10 22:23:24 CEST 2007 (tk) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/others.c: bitset_realloc(): fix invalid state on realloc() failure (bb#560) |
... | ... |
@@ -472,7 +472,7 @@ static void ole2_walk_property_tree(int fd, ole2_header_t *hdr, const char *dir, |
472 | 472 |
|
473 | 473 |
current_block = hdr->prop_start; |
474 | 474 |
|
475 |
- if ((prop_index < 0) || (rec_level > 100) || (*file_count > 100000)) { |
|
475 |
+ if ((prop_index < 0) || (prop_index > hdr->max_block_no) || (rec_level > 100) || (*file_count > 100000)) { |
|
476 | 476 |
return; |
477 | 477 |
} |
478 | 478 |
|