Also add a couple of attributions for my recent memccpy changes.
...
fun:newlocale
}
+# when calling getaddrinfo
+{
+ MEMCHECK-LIBC-REACHABLE-4
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:*alloc
+ fun:_nsyyparse
+}
+{
+ MEMCHECK-LIBC-REACHABLE-5
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:malloc
+ fun:_nsyylex
+}
+{
+ MEMCHECK-LIBC-REACHABLE-6
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:malloc
+ fun:__res_vinit
+}
+
+// Example copied from https://en.cppreference.com/w/c/string/byte/memccpy
#include <ctype.h>
#include <stdio.h>
#include <string.h>
/*---------------------- memccpy ----------------------*/
- /* memccpy */
+ /* memccpy, mostly based on GNU libc source */
#define MEMCCPY(soname, fnname) \
void* VG_REPLACE_FUNCTION_EZU(20490,soname,fnname) \
( void *dst, const void *src, Int c, SizeT len ); \