Browse code

Fix possible crash

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@591 77e5149b-7576-45b1-b177-96237e5ba77b

Trog authored on 2004/06/02 22:14:47
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Jun  2 14:15:54 BST 2004 (trog)
2
+-----------------------------------
3
+  * libclamav/vba_extract.c: Fix possible crash
4
+
1 5
 Wed Jun  2 10:53:51 BST 2004 (trog)
2 6
 -----------------------------------
3 7
   * libclamav/vba_extract.c: Fix bug parsing VBA Project file
... ...
@@ -125,7 +125,7 @@ static char *get_unicode_name(char *name, int size, int is_mac)
125 125
                 return NULL;
126 126
         }
127 127
 
128
-        newname = (char *) cli_malloc(size*2);
128
+        newname = (char *) cli_malloc(size*4);
129 129
         if (!newname) {
130 130
                 return NULL;
131 131
         }