aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2026-10-01 10:37:46 +0300
committerJohannes Berg <johannes.berg@intel.com>2026-10-05 15:18:44 +0200
commitf94595252b318a9ae3c01d78b3bcd33b01b1c082 (patch)
tree0290548e2b80083b8281f27ea7a8e3af6f8eb7d3 /scripts/Makefile.thinlto
parentwifi: b43: don't pass unterminated string to sscanf() (diff)
wifi: b43legacy: debugfs: NUL terminate string in debugfs
The "buf" buffer is PAGE_SIZE and allocated with kzalloc(). We store a string from the user in it and then pass it to sscanf() in the write functions such as tsf_write_file(). The buffer is only used to store a number so we never come close to filling up the whole PAGE_SIZE. Reserve the last character of the page for a NUL terminator. This is debugfs so it's root only. Fixes: 75388acd0cd8 ("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices") Signed-off-by: Dan Carpenter <error27@gmail.com> Link: https://patch.msgid.link/909ea7a88658b5e7c183bf0fda31687a91d73818.1790839793.git.error27@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions