Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix buffer overflow in Log #812

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mx-shift
Copy link

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

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Buffer overflow when built on Ubuntu 24.04 x86_64
1 participant