Commit eb8c0534 authored by Karol Przybylski's avatar Karol Przybylski Committed by Jeff Johnson
Browse files

wifi: ath12k: Fix for out-of bound access error



Selfgen stats are placed in a buffer using print_array_to_buf_index() function.
Array length parameter passed to the function is too big, resulting in possible
out-of bound memory error.
Decreasing buffer size by one fixes faulty upper bound of passed array.

Discovered in coverity scan, CID 1600742 and CID 1600758

Signed-off-by: default avatarKarol Przybylski <karprzy7@gmail.com>
Acked-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241105101132.374372-1-karprzy7@gmail.com


Signed-off-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
parent 1053987a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment