mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 14:39:37 +00:00
Correct comment to work with test code.
Prevent out of bounds array access in some specific cases.
This commit is contained in:
parent
95674596b9
commit
9868274b74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62673
@ -1849,7 +1849,7 @@ register struct re_guts *g;
|
||||
|
||||
/*
|
||||
- altoffset - choose biggest offset among multiple choices
|
||||
= static int altoffset(sop *scan, int offset, int mccs);
|
||||
== static int altoffset(sop *scan, int offset, int mccs);
|
||||
*
|
||||
* Compute, recursively if necessary, the largest offset among multiple
|
||||
* re paths.
|
||||
@ -2034,7 +2034,7 @@ struct re_guts *g;
|
||||
|
||||
ssuffix = pmatches[suffix];
|
||||
while (suffix < g->mlen) {
|
||||
while (suffix <= ssuffix) {
|
||||
while (suffix <= ssuffix && suffix < g->mlen) {
|
||||
g->matchjump[suffix] = MIN(g->matchjump[suffix],
|
||||
g->mlen + ssuffix - suffix);
|
||||
suffix++;
|
||||
|
Loading…
Reference in New Issue
Block a user