git-svn: trunk@3977
Tomasz Kojm authored on 2008/07/21 19:37:19... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Mon Jul 21 12:16:44 CEST 2008 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * sigtool/vba.c: fix crash on error in vba code (bb#1106) |
|
4 |
+ |
|
1 | 5 |
Fri Jul 18 19:33:41 CEST 2008 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav: use a regex for the filename field in .zmd/.rmd (bb#193) |
... | ... |
@@ -1081,10 +1081,11 @@ int sigtool_vba_scandir (const char *dirname, int hex_output, struct uniq *U) |
1081 | 1081 |
vbaname[sizeof(vbaname)-1] = '\0'; |
1082 | 1082 |
fd = open(vbaname, O_RDONLY|O_BINARY); |
1083 | 1083 |
if (fd == -1) continue; |
1084 |
- if ((fullname = cli_ppt_vba_read(fd))) |
|
1084 |
+ if ((fullname = cli_ppt_vba_read(fd))) { |
|
1085 | 1085 |
sigtool_scandir(fullname, hex_output); |
1086 |
- cli_rmdirs(fullname); |
|
1087 |
- free(fullname); |
|
1086 |
+ cli_rmdirs(fullname); |
|
1087 |
+ free(fullname); |
|
1088 |
+ } |
|
1088 | 1089 |
close(fd); |
1089 | 1090 |
} |
1090 | 1091 |
} |