Fix pre_mem_read_sockaddr crash on invalid syscall arguments. Bug #369356.
commit31e1b8c9bab13d6c758bb8b0185df07b26dbcfe1
authorMark Wielaard <mark@klomp.org>
Sat, 1 Oct 2016 11:54:40 +0000 (1 11:54 +0000)
committerMark Wielaard <mark@klomp.org>
Sat, 1 Oct 2016 11:54:40 +0000 (1 11:54 +0000)
tree7aff9666feb454521fbf28560aae0399ee9aeeda
parentbe052139d67afde163ac38b70001fea94ad29061
Fix pre_mem_read_sockaddr crash on invalid syscall arguments. Bug #369356.

Don't do any more checks if it isn't safe to inspect the address family.
Likewise, don't check sun_path if the string address isn't safe.

Found by LTP testcases/kernel/syscalls/bind/bind01.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15990
NEWS
coregrind/m_syswrap/syswrap-generic.c