Skip to content
Commit a40662c9 authored by Maciej W. Rozycki's avatar Maciej W. Rozycki Committed by Martin K. Petersen
Browse files

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: default avatarKhalid Aziz <khalid@gonehiking.org>
Signed-off-by: default avatarMaciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 44d01fc8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment