Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
socket-util-unix: Avoid buffer read overrun in get_unix_name_len().
If the socket length does not include any of the bytes of the path, then the code should not read even the first byte of the path. Found by valgrind. Reported-by: Joe Stringer <[email protected]> Signed-off-by: Ben Pfaff <[email protected]> Acked-by: Thadeu Lima de Souza Cascardo <[email protected]> Acked-by: Joe Stringer <[email protected]>
- Loading branch information