fix another out of memory condition (bb #849)

thanks to Gianluigi Tiesi <sherpya*netfarm.it>


git-svn: trunk@3650
remotes/push_mirror/metadata
Török Edvin 18 years ago
parent d23bc0306d
commit 8f81a5f5f0
  1. 5
      ChangeLog
  2. 3
      libclamav/regex/regcomp.c

@ -1,3 +1,8 @@
Mon Feb 18 12:31:04 EET 2008 (edwin)
------------------------------------
* libclamav/regex/regcomp.c: fix another out of memory condition (bb #849)
thanks to Gianluigi Tiesi <sherpya*netfarm.it>
Mon Feb 18 11:11:34 EET 2008 (edwin)
------------------------------------
* libclamav/phishcheck.c: fix out of memory handling (bb #849).

@ -1060,6 +1060,9 @@ allocset(struct parse *p)
(void) memset((char *)p->g->setbits + (nbytes - css), 0, css);
}
if(!p->g->sets)
goto nomem;
cs = &p->g->sets[no];
cs->ptr = p->g->setbits + css*((no)/CHAR_BIT);
cs->mask = 1 << ((no) % CHAR_BIT);

Loading…
Cancel
Save