diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-06-20 20:39:13 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-06-20 20:39:13 +0300 |
commit | 9b304d53b807e4baaf128a6f15ec176fca4dba6f (patch) | |
tree | 5b8f56e6da3660a733189c5f9579908b085b7a01 /dfa.c | |
parent | bcbe7799ffc4b051e52eaf8f7f19ff844d4c7d20 (diff) | |
download | egawk-9b304d53b807e4baaf128a6f15ec176fca4dba6f.tar.gz egawk-9b304d53b807e4baaf128a6f15ec176fca4dba6f.tar.bz2 egawk-9b304d53b807e4baaf128a6f15ec176fca4dba6f.zip |
Add fix for crash from grep, add test case.
Diffstat (limited to 'dfa.c')
-rw-r--r-- | dfa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2137,7 +2137,7 @@ dfaanalyze (struct dfa *d, int searchflag) MALLOC(lastpos, position, d->nleaves); o_lastpos = lastpos, lastpos += d->nleaves; CALLOC(nalloc, int, d->tindex); - MALLOC(merged.elems, position, d->nleaves); + MALLOC(merged.elems, position, 2 * d->nleaves); CALLOC(d->follows, position_set, d->tindex); |