diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-20 14:03:20 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-20 14:03:20 +0000 |
commit | 97dcea33347a88fd451a9b2e4f27b9d77c268b94 (patch) | |
tree | 5beffd4ac432a996098e9f03decf0a42b4769655 /pp_sys.c | |
parent | b62e3068b8477412c1bf4f7b95e7ddafa8c143a1 (diff) | |
download | perl-97dcea33347a88fd451a9b2e4f27b9d77c268b94.tar.gz |
Security tweak on readlink().
p4raw-id: //depot/perl@10753
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3515,7 +3515,7 @@ PP(pp_readlink) TAINT; #endif tmps = POPpx; - len = readlink(tmps, buf, sizeof buf); + len = readlink(tmps, buf, sizeof(buf) - 1); EXTEND(SP, 1); if (len < 0) RETPUSHUNDEF; |