This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #133937] Assertion failure
authorKarl Williamson <khw@cpan.org>
Tue, 19 Mar 2019 18:37:04 +0000 (12:37 -0600)
committerKarl Williamson <khw@cpan.org>
Tue, 19 Mar 2019 18:50:49 +0000 (12:50 -0600)
commit0b97d15690d19a1fee0c903da7f5898764d8f15e
tree03c07707c5dc861b4941a2b3e515dd55575937d3
parent83a1b28e808bee1a60973291307e3ce0cb77aad5
PATCH: [perl #133937] Assertion failure

This recently added assertion actually caught an error, which is a
potential read beyond end of buffer.  This doesn't actually happen in
this case because this is a regular expression pattern, and the toker
makes sure there is a trailing NUL (that isn't counted).

The solution is to check the bounds before reading.
dquote.c
t/re/reg_mesg.t