Skip to content

Fix theoretical one-byte buffer overrun#509

Open
dirkmueller wants to merge 1 commit into
alsa-project:masterfrom
dirkmueller:overrun
Open

Fix theoretical one-byte buffer overrun#509
dirkmueller wants to merge 1 commit into
alsa-project:masterfrom
dirkmueller:overrun

Conversation

@dirkmueller
Copy link
Copy Markdown

If 64 (sizeof(buf))= or more characters were provided in the input string, this unconditionally writes a null byte to buf[64], which is one byte past the end of the array.

If 64 (sizeof(buf))= or more characters were provided in the input string,
this unconditionally writes a null byte to `buf[64]`, which is one byte
past the end of the array.

Signed-off-by: Dirk Müller <dirk@dmllr.de>
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