-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explain why there is no use after free vulnerability
When looking at the code I initially thought that commit b8f0031 introduced a use after free vulnerability. It does not, but this was not clear from reading the code, so add comments to explain why the buffer (unlike stdin_buf) can just be uninitialized memory and will always be valid throughout process_io() until it is freed. Also avoid allocating two buffers when one will do.
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters