This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Fix named sequences in (?[...])
authorKarl Williamson <khw@cpan.org>
Wed, 22 Apr 2020 21:37:23 +0000 (15:37 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 29 Apr 2020 19:21:51 +0000 (13:21 -0600)
commit42fd8c63c3c0d56c51300f428529223f7a34d1d2
treea97e557b6bc87b957c3bd24d84387296c1855978
parent07b2324000451f5ce36e176cb75d49997ca895bf
regcomp.c: Fix named sequences in (?[...])

The regex_sets feature cannot yet handle named sequences possibly
returned by \p{name=...}.  I forgot to check for this possibility which
led to a null pointer dereference.  Also, the called function was
returning success when it should have failed in this circumstance.

This fixes #17732
pod/perldiag.pod
regcomp.c
t/re/reg_mesg.t