Re: [PATCH 2/5] scsi: BusLogic: Avoid unbounded `vsprintf' use

2021-04-16 Thread Khalid Aziz
On 4/14/21 4:39 PM, Maciej W. Rozycki wrote: > 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

[PATCH 2/5] scsi: BusLogic: Avoid unbounded `vsprintf' use

2021-04-14 Thread Maciej W. Rozycki
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 `vsnpri