diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-09-04 14:48:00 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-09-04 14:48:00 +0200 |
commit | 3d6f95ede6e98cd245cfbdc4c429a184f6c0d717 (patch) | |
tree | 5b44abec395055fc861ad07bd4f8a2a7acdb1caf /shell/ash_test/ash-misc/assignment4.tests | |
parent | 8f1ae256347b32057d32846f915f53f9106f00bc (diff) | |
download | busybox-3d6f95ede6e98cd245cfbdc4c429a184f6c0d717.tar.gz |
whois: fix a possible out-of-bounds stack access
If fgets() returns incomplete string, we replace NUL with
'\n', and then trim() runs on a non-NUL-terminated buffer.
Prevent that.
While at it, bump buffer from 1k to 2k.
function old new delta
query 519 524 +5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-misc/assignment4.tests')
0 files changed, 0 insertions, 0 deletions