This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
readlink() result buffer is not zero-terminated.
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 26 Jul 2014 13:42:30 +0000 (09:42 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Jul 2014 00:38:06 +0000 (20:38 -0400)
commit51b468f688a3660c4842b9e634c5fe58a2196307
tree1ecd53f2ee6985ec0e0e30d02b4773e953514084
parentce5b0b849c4a3e4d77dc60096ae4170609a81644
readlink() result buffer is not zero-terminated.

Therefore, as an extra paranoia step, zero-terminate
the readlink result buffer even before the result SV is created.

Also, readlink returns SSize_t, not int.
caretx.c
pp_sys.c