Skip to content

Fix buffer overrun in pseudoterminal test#119

Open
alyssais wants to merge 1 commit into
freeswitch:masterfrom
alyssais:pty
Open

Fix buffer overrun in pseudoterminal test#119
alyssais wants to merge 1 commit into
freeswitch:masterfrom
alyssais:pty

Conversation

@alyssais
Copy link
Copy Markdown

vsnprintf returns the number of bytes needed, excluding the terminating NUL byte. This therefore always wrote the terminating NUL byte to one address past the end of buf.

Identified with fortify-headers.

vsnprintf returns the number of bytes needed, *excluding* the
terminating NUL byte.  This therefore always wrote the terminating
NUL byte to one address past the end of buf.

Identified with fortify-headers.
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.

1 participant