From 4adcd21bf98e3662559ec057cda696d99ee9e3ea Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Wed, 20 Aug 2014 17:45:00 +0000 Subject: [PATCH] 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 --- coregrind/m_syswrap/syswrap-generic.c | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.47.2