Update valgrind suppressions
g0dil [Thu, 16 Apr 2009 10:15:42 +0000 (10:15 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1192 270642c3-0616-0410-b53a-bc976706d245

Socket/Protocols/Raw/LLAddressing.cc
valgrind.sup

index faec193..71addad 100644 (file)
@@ -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);
index 4146e3e..6cff8a0 100644 (file)
    Memcheck:Cond
    fun:inet_ntop
 }
+
+{
+   if_indextoname-suppression-1
+   Memcheck:Param
+   ioctl(SIOCGIFINDEX)
+   obj:/lib/ld-2.3.6.so
+}