Browse code

fix cli_malloc() error

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

Trog authored on 2004/03/16 03:31:19
Showing 2 changed files
... ...
@@ -1,3 +1,6 @@
1
+Mon Mar 15 18:40:44 GMT 2004 (trog)
2
+  * libvlamav/ole2_extract.c: fix cli_malloc() error
3
+
1 4
 Mon Mar 15 17:05:01 CET 2004 (tk)
2 5
 ---------------------------------
3 6
   * libclamav: unrarlib: fixed segfault with some Bagle's RAR archives
... ...
@@ -187,7 +187,7 @@ static char *get_property_name(char *name, int size)
187 187
 	int i, j;
188 188
 	char *newname;
189 189
 
190
-	if (*name == 0 || size == 0 || size > 64) {
190
+	if (*name == 0 || size <= 0 || size > 64) {
191 191
 		return NULL;
192 192
 	}
193 193