From 8fbe3f6f1f4601bcc57d08281926626130213069 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 28 Jul 2022 13:45:02 -0600 Subject: Fix GH #20009, pattern match panic This was the result of using the wrong case in a switch() Thanks to @bram-perl for the idea of the test case reduction --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regexec.c') diff --git a/regexec.c b/regexec.c index dfe9909869..184a4761ff 100644 --- a/regexec.c +++ b/regexec.c @@ -10365,7 +10365,7 @@ S_regrepeat(pTHX_ regexp *prog, char **startposp, const regnode *p, } break; - case ANYOFHbbm: + case ANYOFHbbm_t8: while ( hardcount < max && scan + 1 < this_eol && (U8) *scan == ANYOF_FLAGS(p) -- cgit v1.2.1