aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc/errexit1.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-09-04 14:48:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-09-04 14:48:00 +0200
commit3d6f95ede6e98cd245cfbdc4c429a184f6c0d717 (patch)
tree5b44abec395055fc861ad07bd4f8a2a7acdb1caf /shell/ash_test/ash-misc/errexit1.tests
parent8f1ae256347b32057d32846f915f53f9106f00bc (diff)
downloadbusybox-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/errexit1.tests')
0 files changed, 0 insertions, 0 deletions