diff --git a/cfg/posix.cfg b/cfg/posix.cfg index 83766ed12..cce1045b3 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -1729,6 +1729,20 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s + + + + false + + + + + + + + + + false diff --git a/test/cfg/posix.c b/test/cfg/posix.c index b1986f7ca..0ba5749b0 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -32,10 +31,18 @@ #include #include #define _XOPEN_SOURCE +#include #include #include #include +void nullPointer_encrypt(char block[64], int edflag) +{ + // cppcheck-suppress nullPointer + encrypt(NULL, edflag); + encrypt(block, edflag); +} + int nullPointer_getopt(int argc, char* const argv[], const char* optstring) { // cppcheck-suppress nullPointer