mirror of https://git.musl-libc.org/git/musl
Browse Source
Due to an error introduced in commit fcc522c923,
checking of the remaining output buffer space was not performed correctly,
allowing malformed input to write past the end of the buffer.
In addition, the loop detection logic failed to account for the possibility
of infinite loops with no output, which would hang the function.
The output size is now limited more strictly so only names with valid length
are accepted.
master
1 changed files with 6 additions and 4 deletions
Loading…
Reference in new issue