Browse code

libclamav/readdb.c: fix handling of malformed ldb sigs (bb#1292)

git-svn: trunk@4434

Tomasz Kojm authored on 2008/11/19 04:21:11
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Nov 18 20:20:14 CET 2008 (tk)
2
+---------------------------------
3
+ * libclamav/readdb.c: fix handling of malformed ldb sigs (bb#1292)
4
+
1 5
 Tue Nov 18 19:33:07 CET 2008 (acab)
2 6
 -----------------------------------
3 7
  * libclamav/mpool.c: a(void*) arithmetic
... ...
@@ -766,6 +766,8 @@ static int lsigattribs(char *attribs, struct cli_lsig_tdb *tdb)
766 766
 		break;
767 767
 	    }
768 768
 	}
769
+	if(!apt)
770
+	    continue;
769 771
 	switch(apt->type) {
770 772
 	    case CLI_TDB_UINT:
771 773
 		*apt->pt = (uint32_t *) &tdb->val[off[i]];