fix null dereference when cli_bm_scanbuff is called with an empty fp db

git-svn: trunk@3460
remotes/push_mirror/metadata
aCaB 18 years ago
parent 5a9a9989b8
commit 1f2ebf0cc5
  1. 4
      ChangeLog
  2. 2
      libclamav/matcher-bm.c

@ -1,3 +1,7 @@
Fri Dec 28 13:06:56 CET 2007 (acab)
-----------------------------------
* libclamav/matcher-bm.c: typo causing null dereference on mdb matches
Fri Dec 28 13:53:33 EET 2007 (edwin)
------------------------------------
* libclamav/phishcheck.h, regex_list.[ch], rtf.c:

@ -150,7 +150,7 @@ int cli_bm_scanbuff(const unsigned char *buffer, uint32_t length, const char **v
struct cli_target_info info;
if(!root->bm_shift)
if(!root || !root->bm_shift)
return CL_CLEAN;
if(length < BM_MIN_LENGTH)

Loading…
Cancel
Save