summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@orcam.me.uk>2021-04-20 20:01:52 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-08-01 13:26:38 -0400
commita40662c90d974a89d2f5d627542b63bed88e72f0 (patch)
treec400a7efc534ef75e6a5acd85d667069cf898ec9 /tools/perf/scripts/python/export-to-sqlite.py
parent44d01fc86d952f5a8b8b32bdb4841504d5833d95 (diff)
downloadlinux-a40662c90d974a89d2f5d627542b63bed88e72f0.tar.gz
linux-a40662c90d974a89d2f5d627542b63bed88e72f0.zip
scsi: BusLogic: Avoid unbounded vsprintf() use
Existing blogic_msg() invocations do not appear to overrun its internal buffer of a fixed length of 100, which would cause stack corruption, but it's easy to miss with possible further updates and a fix is cheap in performance terms, so limit the output produced into the buffer by using vscnprintf() rather than vsprintf(). Link: https://lore.kernel.org/r/alpine.DEB.2.21.2104201939390.44318@angie.orcam.me.uk Acked-by: Khalid Aziz <khalid@gonehiking.org> Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions