This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mathoms.c: Make safer a deprecated function
authorKarl Williamson <khw@cpan.org>
Wed, 25 Jul 2018 03:41:41 +0000 (21:41 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 3 Aug 2018 19:13:24 +0000 (13:13 -0600)
commitc6734c35eefe26067112bce2d763f16bc9d99333
tree308d0e7f5e1cbe087e8b00e674adf0179aac3614
parent6f7ce6e80d292b2714db601b64fbbee35c5f181a
mathoms.c: Make safer a deprecated function

This function is deprecated because it is lacking a length parameter, so
malformed UTF-8 may cause it to read beyond the buffer.  This commit
causes it to not read beyond a NUL character, which makes it safe for
the common case that the input is a C string.
mathoms.c