fix boundary error (bb#491)

git-svn: trunk@3049
remotes/push_mirror/metadata
Tomasz Kojm 18 years ago
parent 94de6789d2
commit 2242da430e
  1. 6
      ChangeLog
  2. 3
      libclamav/matcher-ac.c

@ -1,6 +1,10 @@
Wed May 2 10:30:39 CEST 2007 (tk)
----------------------------------
* libclamav/matcher-ac.c: fix boundary error (bb#491)
Tue May 1 22:26:00 EEST 2007 (edwin)
----------------------------------
libclamav/htmlnorm.c: fix uninitialized value warning
* libclamav/htmlnorm.c: fix uninitialized value warning
Tue May 1 18:13:09 BST 2007 (njh)
----------------------------------

@ -334,6 +334,9 @@ inline static int ac_findmatch(const unsigned char *buffer, uint32_t offset, uin
uint8_t found;
if(offset + pattern->length > length)
return 0;
if(pattern->prefix)
if(pattern->prefix_length > offset)
return 0;

Loading…
Cancel
Save