diff options
author | Ilya Zakharevich <ilya@math.ohio-state.edu> | 1997-04-30 15:20:01 -0400 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-05-01 00:00:00 +1200 |
commit | 2cc2f81ffdcb05e1371551fe83121e4d44ead3b6 (patch) | |
tree | 900f474521851a45393968dc9dc2ec5e68c8276b /os2 | |
parent | 064096e1fdaab07bcd3ebf7726fe67a5ae16c76f (diff) | |
download | perl-2cc2f81ffdcb05e1371551fe83121e4d44ead3b6.tar.gz |
Fix OS/2-specific buffer overflow
private-msgid: 199704301920.PAA09681@monk.mps.ohio-state.edu
Diffstat (limited to 'os2')
-rw-r--r-- | os2/os2.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -321,7 +321,7 @@ int execf; if (strnEQ(cmd,"/bin/sh",7) && isSPACE(cmd[7])) { STRLEN l = strlen(sh_path); - New(1302, news, strlen(cmd) - 7 + l, char); + New(1302, news, strlen(cmd) - 7 + l + 1, char); strcpy(news, sh_path); strcpy(news + l, cmd + 7); cmd = news; |