summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHeyang Tan <thy15333007817@163.com>2026-09-19 12:44:39 +0800
committerJeff Chen <jeff.chen_1@nxp.com>2026-10-05 21:53:08 +0800
commit93a443bb4e91183101f2a5faf826c41293aedcce (patch)
tree8d6d78eab65c8f80b482b0ea5933f31db670fb1e /include/linux
parent5033daff1534a586536ee6e7f70f6886122464c5 (diff)
downloadlinux-93a443bb4e91183101f2a5faf826c41293aedcce.tar.gz
linux-93a443bb4e91183101f2a5faf826c41293aedcce.zip
wifi: nxpwifi: bound debug info output
nxpwifi_debug_read() provides a PAGE_SIZE buffer to nxpwifi_debug_info_to_buffer(), which formats debug state with unbounded sprintf() calls. The same helper is also used for the firmware dump. Pass the output size to the helper and use scnprintf() while formatting. Clamp the debug table counts and window size to the backing array lengths before accessing them. Assisted-by: LLM Signed-off-by: Heyang Tan <thy15333007817@163.com> Reviewed-by: Jeff Chen <jeff.chen_1@nxp.com> Signed-off-by: Jeff Chen <jeff.chen_1@nxp.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions