You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments