From: Tom Hughes <thh@i'm sure he doesn't want to be spammed.com>

The attached patch improves the validation done on sockaddr structures
passed to systems calls by extending the existing code for AF_UNIX to
cover AF_INET and AF_INET6 as well so that errors are not raised when
an unused part of the sockaddr structure is not filled in.

It also applies this new code to bind and sendto as well as connect.

Tom


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@206 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 file changed