diff options
| author | Heyang Tan <thy15333007817@163.com> | 2026-09-19 12:44:39 +0800 |
|---|---|---|
| committer | Jeff Chen <jeff.chen_1@nxp.com> | 2026-10-05 21:53:08 +0800 |
| commit | 93a443bb4e91183101f2a5faf826c41293aedcce (patch) | |
| tree | 8d6d78eab65c8f80b482b0ea5933f31db670fb1e /include/linux | |
| parent | 5033daff1534a586536ee6e7f70f6886122464c5 (diff) | |
| download | linux-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
