aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-04-19 15:14:05 +0100
committerKalle Valo <[email protected]>2021-04-22 17:39:29 +0300
commita9a4c080deb33f44e08afe35f4ca4bb9ece89f4e (patch)
tree34bc691b48d164ebb4d929514325800af284bc2f /scripts/gdb/linux/timerlist.py
parentbb43e5718d8f1b46e7a77e7b39be3c691f293050 (diff)
wlcore: Fix buffer overrun by snprintf due to incorrect buffer size
The size of the buffer than can be written to is currently incorrect, it is always the size of the entire buffer even though the snprintf is writing as position pos into the buffer. Fix this by setting the buffer size to be the number of bytes left in the buffer, namely sizeof(buf) - pos. Addresses-Coverity: ("Out-of-bounds access") Fixes: 7b0e2c4f6be3 ("wlcore: fix overlapping snprintf arguments in debugfs") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions