g4klx / MMDVMHost

The host program for the MMDVM
GNU General Public License v2.0
378 stars 274 forks source link

Fix buffer overflow in Log #812

Open mx-shift opened 4 months ago

mx-shift commented 4 months ago

Log line prefix is written to the buffer before the log message. While the buffer start was being adjusted when writing the log message via vsnprintf(), the buffer size was not. This would allow a log message to write past the end of the stack-allocated buffer.

Fixes #811