diff options
| author | 2026-09-20 11:44:14 +0800 | |
|---|---|---|
| committer | 2026-10-05 15:07:48 +0200 | |
| commit | 3ffb0de666c6dc3831a16ad33f9c9fd8a9310dcb (patch) | |
| tree | cf612fc84cabb69e7c112e43a5c4320ccef676f3 /scripts/Makefile.thinlto | |
| parent | wifi: brcmfmac: cfg80211: Report port_authorized for 4-way HS offload (diff) | |
wifi: brcmfmac: bound NVRAM comment parsing
The NVRAM comment handler searches for a newline with strchr() even
though its input is a firmware buffer with an explicit length. A comment
at the end of an unterminated buffer can make the search read past that
input.
Keep the input extent in the parser and use bounded searches for newline
and NUL. Preserve the full input length: the capped size used to
allocate the output is not a bound on the input, which may contain more
than 64KiB of comments. Leave the outer parsing limit unchanged.
The issue was found by our static-analysis tool.
Assisted-by: gpt 5
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20260920034414.16948-1-hppiscas@163.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
