This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #129322] S_invlist_clear(SV *): Assertion `invlist' failed
authorKarl Williamson <khw@cpan.org>
Mon, 17 Oct 2016 21:08:08 +0000 (15:08 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 19 Oct 2016 16:08:37 +0000 (10:08 -0600)
commita5540cf9741163e5c13e99582ebe3a6ba4f3d3fa
tree40a520be7072b3330df411e02243fe1d463e6171
parent8204e83c388410f177953bac8b1f3a0dd3d66602
PATCH: [perl #129322] S_invlist_clear(SV *): Assertion `invlist' failed

This was the result of an inconsistency in the inversion list union and
intersection routines, where under some conditions the function returned
a new inversion list, and under other conditions it just changed one of
the input ones.  The caller knew about one of those and compensated, but
that compensation was erroneous given other conditions.  This violated
encapsulation.  The fix is make the called functions always consistent.
regcomp.c
t/re/regex_sets.t