This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: "Unrecognized character" error shouldn't leak memory or mangle characters.
authorBrian Fraser <fraserbn@gmail.com>
Thu, 29 Aug 2013 14:26:58 +0000 (11:26 -0300)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 10 Sep 2013 15:36:12 +0000 (08:36 -0700)
commit8405109152b060e3419c0cddc875535421bcc7ca
tree8281627e377acb8ae13c8253bacb5a3b6a59cc99
parentcd313eb4878cb9858789ba98728a51205e8c78a9
toke.c: "Unrecognized character" error shouldn't leak memory or mangle characters.

This error could've leaked memory if used within as eval, and could
cut off in the middle of a character, leaving worthless binary data
in the error message.
t/uni/parser.t
toke.c