Skip to content

Fix an out-of-bounds write#14

Open
libnoon wants to merge 1 commit into
miquels:masterfrom
libnoon:bounds
Open

Fix an out-of-bounds write#14
libnoon wants to merge 1 commit into
miquels:masterfrom
libnoon:bounds

Conversation

@libnoon

@libnoon libnoon commented Mar 21, 2022

Copy link
Copy Markdown

The line

  buf[len] = 0;

could write past the buffer if we have read 16 bytes.

Read only 15 bytes to avoid this possibility.

The line
  buf[len] = 0;
could write past the buffer if we have read 16 bytes.

Read only 15 bytes to avoid this possibility.
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