This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
buffer overflow in "string terminator" err msg
authorDavid Mitchell <davem@iabyn.com>
Tue, 16 Aug 2016 12:50:46 +0000 (13:50 +0100)
committerDavid Mitchell <davem@iabyn.com>
Tue, 16 Aug 2016 12:50:46 +0000 (13:50 +0100)
commite487ff5ee8f0cde894977f61d319c0c4e44aa0bd
tree747b7a2c7961568a9de8a688aaff1cd221d1acd8
parent27368b5c886989ee5e8113e4fc4c6ce538205bb6
buffer overflow in "string terminator" err msg

RT #128952

In
    eval "q" . chr(100000000064);

generating the error message C<Can't find string terminator "XXX"'>
was overrunning a buffer designed to hold a single utf8 char, since
it wasn't allowing for the \0 at the end.
t/comp/parser.t
toke.c