Commit 37f2bbbe8b9ea0a6659a60ab05602bb2742eebe5

Paul Eggert 2021-02-05T16:35:45

regex: avoid undefined behavior * lib/regexec.c (pop_fail_stack): If the stack is empty, return -1 instead of indulging in undefined behavior. This simplifies callers, and avoids undefined behavior in some cases (see glibc bug 11053, though this change does not fix that overall bug).