diff options
| author | Candy Febriyanto <[email protected]> | 2021-03-01 22:00:11 +0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-03-10 09:25:32 +0100 |
| commit | 6d108d064c27928d1bbae22c8f7f81d8efb021fb (patch) | |
| tree | 8dea2930157916036e70636eff2b4a7459ecbf14 /tools/perf/scripts/python | |
| parent | 2a02059e4f9ed59817d8c238f93bb8e5c58562ad (diff) | |
staging: rtl8723bs: os_dep: Replace sprintf with scnprintf
The use of sprintf with format string here means that there is a risk
that the writes will go out of bounds, replace it with scnprintf.
In one block of the translate_scan function sprintf is only called once
(it's not being used to concatenate strings) so there is no need to keep
the pointer "p", remove it.
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Candy Febriyanto <[email protected]>
Link: https://lore.kernel.org/r/d76c5f1db8dbf02ac0ab954b0971ce24e5a8b9bd.1614610197.git.cfebriyanto@gmail.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions