From: g0dil Date: Thu, 16 Apr 2009 10:15:42 +0000 (+0000) Subject: Update valgrind suppressions X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=c38ac1eba5f76a57fb186045c65bc1701833f2cb;p=senf.git Update valgrind suppressions git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1192 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/Raw/LLAddressing.cc b/Socket/Protocols/Raw/LLAddressing.cc index faec193..71addad 100644 --- a/Socket/Protocols/Raw/LLAddressing.cc +++ b/Socket/Protocols/Raw/LLAddressing.cc @@ -47,6 +47,7 @@ prefix_ std::string senf::LLSocketAddress::interface() if (addr_.sll_ifindex == 0) return std::string(); char name[IFNAMSIZ]; + ::bzero(name, IFNAMSIZ); if (! ::if_indextoname(addr_.sll_ifindex, name)) throw AddressSyntaxException(); return std::string(name); diff --git a/valgrind.sup b/valgrind.sup index 4146e3e..6cff8a0 100644 --- a/valgrind.sup +++ b/valgrind.sup @@ -101,3 +101,10 @@ Memcheck:Cond fun:inet_ntop } + +{ + if_indextoname-suppression-1 + Memcheck:Param + ioctl(SIOCGIFINDEX) + obj:/lib/ld-2.3.6.so +}