diff --git a/cfg/gnu.cfg b/cfg/gnu.cfg
index 86fd85955..e6e3a138a 100644
--- a/cfg/gnu.cfg
+++ b/cfg/gnu.cfg
@@ -530,6 +530,114 @@
+
+
+
+
+ false
+
+
+
+
+
+
+
+
+ 0:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0:
+
+
+
+
+
+
+
+
+
+
-
-
-
- false
-
-
-
-
-
-
-
-
- 0:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0:
-
-
-
-
-
-
-
-
-
-
-
false
diff --git a/test/cfg/gnu.c b/test/cfg/gnu.c
index 6f2f7be6c..3b04a1fda 100644
--- a/test/cfg/gnu.c
+++ b/test/cfg/gnu.c
@@ -25,6 +25,7 @@
#include
#include
#include
+#include
void unreachableCode_error(void) // #11197
{
@@ -34,6 +35,37 @@ void unreachableCode_error(void) // #11197
int i;
}
+int nullPointer_gethostbyname2_r(const char* name, int af, struct hostent* ret, char* buf, size_t buflen, struct hostent** result, int* h_errnop)
+{
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname2_r(NULL, af, ret, buf, buflen, result, h_errnop);
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname2_r(name, af, NULL, buf, buflen, result, h_errnop);
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname2_r(name, af, ret, NULL, buflen, result, h_errnop);
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname2_r(name, af, ret, buf, buflen, NULL, h_errnop);
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname2_r(name, af, ret, buf, buflen, result, NULL);
+ return gethostbyname2_r(name, af, ret, buf, buflen, result, h_errnop);
+}
+
+int nullPointer_gethostbyname_r(const char* name, struct hostent* ret, char* buf, size_t buflen, struct hostent** result, int* h_errnop)
+{
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname_r(NULL, ret, buf, buflen, result, h_errnop);
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname_r(name, NULL, buf, buflen, result, h_errnop);
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname_r(name, ret, NULL, buflen, result, h_errnop);
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname_r(name, ret, buf, buflen, NULL, h_errnop);
+ // cppcheck-suppress nullPointer
+ (void) gethostbyname_r(name, ret, buf, buflen, result, NULL);
+ return gethostbyname_r(name, ret, buf, buflen, result, h_errnop);
+}
+
+
int nullPointer_gethostbyaddr_r(const void* addr, socklen_t len, int type, struct hostent* ret, char* buf, size_t buflen, struct hostent** result, int* h_errnop)
{
// cppcheck-suppress nullPointer