summaryrefslogtreecommitdiff
path: root/include/linux/linux_string.h
diff options
context:
space:
mode:
authorMarek BehĂșn <[email protected]>2021-09-24 23:06:39 +0200
committerStefan Roese <[email protected]>2021-10-01 11:07:13 +0200
commitf30cb0d3b9fd2d7c51339404ddaeae53ba9b90f9 (patch)
treeb382d08855827a61eb5eb53b670f9d4357801c17 /include/linux/linux_string.h
parent3b5da64edfdc013b105573a20871659d37ab53de (diff)
tools: kwboot: Fix buffer overflow in kwboot_terminal()
The `in` variable is set to -1 in kwboot_terminal() if stdin is not a tty. In this case we should not look whether -1 is set in fd_set, for it can lead to a buffer overflow, which can be reproduced with echo "xyz" | ./tools/kwboot -t /dev/ttyUSB0 Signed-off-by: Marek BehĂșn <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions