diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-09 08:03:18 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-09 08:03:18 +0200 |
commit | 9ab096a707c4f943a9e6e886ad236c07e7a5aa13 (patch) | |
tree | b98dad79351f0d4492a7661c9e8aa32f689dcaee /sys/src/cmd/python/Python/strerror.c | |
parent | 8ed25f24b7831eab394f14697766d55065b18822 (diff) |
kernel: reject bogus two byte "#!" shell scripts in sysexec()
- reject files smaller or equal to two bytes, they are bogus
- fix out of bounds access in shargs() when n <= 2
- only copy the bytes read into line buffer
- use nil for pointers instead of 0
Diffstat (limited to 'sys/src/cmd/python/Python/strerror.c')
0 files changed, 0 insertions, 0 deletions