diff options
| author | 2026-10-03 17:59:13 +0800 | |
|---|---|---|
| committer | 2026-10-05 08:06:03 -0700 | |
| commit | 13b15eabe2c541b80406166964cdc8ccb5e9c32a (patch) | |
| tree | fbd47c55317900af466735245a74298668eb5ca7 /scripts/Makefile.thinlto | |
| parent | wifi: ath11k: fix unbalanced IRQ enable/disable during suspend/resume (diff) | |
wifi: ath12k: Reserve space for a string terminator
ath12k_write_htt_stats_type() accepts count == size, which fills the
zero-initialized buffer without a terminating NUL. sscanf() then reads
beyond the buffer.
Reject input that leaves no room for the trailing NUL.
Fixes: 8c7a5031a6b0 ("wifi: ath12k: Fix buffer overflow in debugfs")
Reviewed-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Link: https://patch.msgid.link/20261003095913.575108-1-yaojiale02@163.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
