* config/srclist.txt: Remove posix/regexec.c for now.
* lib/regexec.c (re_search_internal):
Fix buffer read overrun reported by Benno Schulenberg in:
https://lists.gnu.org/r/bug-gnulib/2021-10/msg00035.html
+2021-10-18 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex: fix buffer read overrrun
+ * lib/regexec.c (re_search_internal):
+ Fix buffer read overrun reported by Benno Schulenberg in:
+ https://lists.gnu.org/r/bug-gnulib/2021-10/msg00035.html
+
2021-10-15 Paul Eggert <eggert@cs.ucla.edu>
nproc: port better to macOS 10.14
$LIBCSRC posix/regex.h lib
$LIBCSRC posix/regex_internal.c lib
$LIBCSRC posix/regex_internal.h lib
-$LIBCSRC posix/regexec.c lib
+#$LIBCSRC posix/regexec.c lib
#$LIBCSRC stdlib/canonicalize lib/canonicalize-lgpl.c
#$LIBCSRC sysdeps/generic/eloop-threshold.h lib
$LIBCSRC time/timegm.c lib
}
/* If MATCH_FIRST is out of the buffer, leave it as '\0'.
Note that MATCH_FIRST must not be smaller than 0. */
- ch = (match_first >= length
+ ch = (mctx.input.valid_len <= offset
? 0 : re_string_byte_at (&mctx.input, offset));
if (fastmap[ch])
break;