mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Initialize variables used by the Boyer-Moore algorithm.
This should fix core dumps when the must pattern is of length three or less. Bug found by: knu
This commit is contained in:
parent
8bea8d9daa
commit
6b709b74ae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62263
@ -246,6 +246,8 @@ int cflags;
|
||||
g->nbol = 0;
|
||||
g->neol = 0;
|
||||
g->must = NULL;
|
||||
g->charjump = NULL;
|
||||
g->matchjump = NULL;
|
||||
g->mlen = 0;
|
||||
g->nsub = 0;
|
||||
g->ncategories = 1; /* category 0 is "everything else" */
|
||||
|
Loading…
Reference in New Issue
Block a user