Branch: refs/heads/maint-5.40
Home: https://github.com/Perl/perl5
Commit: 620e07a26ebd9dc0a398bf14eb6a2105cebd2448
https://github.com/Perl/perl5/commit/620e07a26ebd9dc0a398bf14eb6a2105cebd2448
Author: Karl Williamson <[email protected]>
Date: 2026-07-21 (Tue, 21 Jul 2026)
Changed paths:
M regcomp_study.c
M t/re/pat_advanced.t
Log Message:
-----------
regcomp_study: Don't create a trie that would overflow
This addresses GH #23388
The design of the trie compiling code is to batch extra long tries into
smaller chunks that fit into whatever limitations there are. However,
this ticket shows that that isn't always being done.
In this case, a bunch of branches that have TAIL operands can be
combined together, and the final TAIL is used. And the code requires
that the delta between the first branch and this final TAIL fit into a
16-bit field. That is the root cause of this bug.
I'm not familiar enough with the trie construction code to easily
understand why the final tail needs to be used here. So this patch
simply doesn't optimize a sequence of branches into a trie that would
overflow.
This could be revisited by someone who knows more about this than I, or
earlier in the development cycle.
(cherry picked from commit 03f74bbbd3a68350d926ee93d56ee4808c28c4c7)
Commit: e163db53b29520936cd70c94d5011d73315fc4ce
https://github.com/Perl/perl5/commit/e163db53b29520936cd70c94d5011d73315fc4ce
Author: Leon Timmermans <[email protected]>
Date: 2026-07-21 (Tue, 21 Jul 2026)
Changed paths:
M pod/perldelta.pod
Log Message:
-----------
Add something about CVE-2026-13221 to perl5440delta
(cherry picked from commit 57f455aec1f783039270f4058af5c93ca22c431e)
Commit: 68deca47c1f0700a30af9aa372c265e3c6c80d54
https://github.com/Perl/perl5/commit/68deca47c1f0700a30af9aa372c265e3c6c80d54
Author: Steve Hay <[email protected]>
Date: 2026-07-21 (Tue, 21 Jul 2026)
Changed paths:
M pod/perldelta.pod
Log Message:
-----------
perldelta: Remove boilerplate
Compare: https://github.com/Perl/perl5/compare/e3990c339ed8...68deca47c1f0
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications