From: Julian Seward Date: Wed, 20 Aug 2014 17:45:00 +0000 (+0000) Subject: Kind of a follow-up to r14237. X-Git-Tag: svn/VALGRIND_3_10_0~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4adcd21bf98e3662559ec057cda696d99ee9e3ea;p=thirdparty%2Fvalgrind.git Kind of a follow-up to r14237. pre_mem_read_sockaddr: in the case where the caller doesn't specify any address family (that is, the family is AF_UNSPEC) don't perform any further checks on the supplied |sa| address block, since doing so merely gives rise to false uninitialised value errors. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14320 --- diff --git a/coregrind/m_syswrap/syswrap-generic.c b/coregrind/m_syswrap/syswrap-generic.c index 8c7c551867..8bd42aa4be 100644 --- a/coregrind/m_syswrap/syswrap-generic.c +++ b/coregrind/m_syswrap/syswrap-generic.c @@ -1085,6 +1085,11 @@ void pre_mem_read_sockaddr ( ThreadId tid, break; # endif +# ifdef VKI_AF_UNSPEC + case VKI_AF_UNSPEC: + break; +# endif + default: /* No specific information about this address family. Let's just check the full data following the family.