]> Savannah Git Hosting - gnulib.git/commit
regex: fix match with possessive quantifier
authorEgor Ignatov <egori@altlinux.org>
Wed, 26 May 2021 09:08:19 +0000 (12:08 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 6 Jun 2021 08:00:00 +0000 (08:00 +0000)
commit0b4fa3dada84dc3da0d3efee9327f8db26d59903
tree8d26ac986c1c6f4060d5365e3be673275b63e966
parent599ecba3344d9280802ce9f80d593d5ded2312a3
regex: fix match with possessive quantifier

Fix behaviour introduced in 70b673eb7, where regexps with
possessive quantifier("*+") didn't match.

* lib/regexec.c (set_regs): Pop if CUR_NODE has already been checked
only when we have a fail stack.

Fixes: 70b673eb7 ("regex: fix longstanding backref match bug")
Signed-off-by: Egor Ignatov <egori@altlinux.org>
lib/regexec.c