From 24a71144f6f59230ef8c7ab515efe9832778c1e8 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 22 Dec 2022 09:19:46 +0100 Subject: [PATCH] posix.cfg: Added support for encrypt() --- cfg/posix.cfg | 14 ++++++++++++++ test/cfg/posix.c | 9 ++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) 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