This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix segfault in filehandle duplication
authorLeon Timmermans <fawaka@gmail.com>
Sat, 7 Sep 2013 06:58:18 +0000 (08:58 +0200)
committerLeon Timmermans <fawaka@gmail.com>
Sat, 7 Sep 2013 07:01:42 +0000 (09:01 +0200)
commitdf8c7dee25da69fc88678b8949166e08fb686037
tree8baedebddcab7691688e5439823133baa767a737
parent7b6e8075e45ebc684565efbe3ce7b70435f20c79
Fix segfault in filehandle duplication

Previously PerlIOBase_dup didn't check if pushing the new layer succeeded
before (optionally) setting the utf8 flag. This could cause
segfaults-by-nullpointer.
perlio.c