git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@495 77e5149b-7576-45b1-b177-96237e5ba77b
Trog authored on 2004/04/16 20:40:30... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Fri Apr 16 12:40:03 BST 2004 (trog) |
|
2 |
+----------------------------------- |
|
3 |
+ * libclamav/vba_extract.c: fix possible crash |
|
4 |
+ |
|
1 | 5 |
Thu Apr 15 16:26:38 CEST 2004 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav: add a "clamav-" prefix to temporary file names (Dirk Mueller |
... | ... |
@@ -205,8 +205,8 @@ static int vba_read_project_strings(int fd, int is_mac) |
205 | 205 |
Type 'C' entries come in pairs, the second also |
206 | 206 |
having a 12 byte trailer */ |
207 | 207 |
/* TODO: Need to check if types H(same as G) and D(same as C) exist */ |
208 |
- if (!strncmp ("*\\G", name, 3) || !strncmp ("*\\H", name, 3) |
|
209 |
- || !strncmp("*\\C", name, 3) || !strncmp("*\\D", name, 3)) { |
|
208 |
+ if (name && (!strncmp ("*\\G", name, 3) || !strncmp ("*\\H", name, 3) |
|
209 |
+ || !strncmp("*\\C", name, 3) || !strncmp("*\\D", name, 3))) { |
|
210 | 210 |
if (cli_readn(fd, &length, 2) != 2) { |
211 | 211 |
return FALSE; |
212 | 212 |
} |