[prev in list] [next in list] [prev in thread] [next in thread]
List: perl5-changes
Subject: [Perl/perl5] 42fd8c: regcomp.c: Fix named sequences in (?[...])
From: Karl Williamson <noreply () github ! com>
Date: 2020-04-29 19:22:33
Message-ID: Perl/perl5/push/refs/heads/blead/07b232-a964bf () github ! com
[Download RAW message or body]
Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 42fd8c63c3c0d56c51300f428529223f7a34d1d2
https://github.com/Perl/perl5/commit/42fd8c63c3c0d56c51300f428529223f7a34d1d2
Author: Karl Williamson <khw@cpan.org>
Date: 2020-04-29 (Wed, 29 Apr 2020)
Changed paths:
M pod/perldiag.pod
M regcomp.c
M t/re/reg_mesg.t
Log Message:
-----------
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
Commit: a964bf354ede905cf62ebdd20fb08b8f6eaa137c
https://github.com/Perl/perl5/commit/a964bf354ede905cf62ebdd20fb08b8f6eaa137c
Author: Karl Williamson <khw@cpan.org>
Date: 2020-04-29 (Wed, 29 Apr 2020)
Changed paths:
M regcomp.c
Log Message:
-----------
regcomp.c: Add assert
The code's proper functioning currently depends on bracketed character
classes not returning a sequence of characters to the regex sets feature
(?[...])
Add an assert to validate that.
Compare: https://github.com/Perl/perl5/compare/07b232400045...a964bf354ede
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic