diff --git a/cfg/posix.cfg b/cfg/posix.cfg index c7a6ff440..5890e904e 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -2782,7 +2782,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s fd_set *restrict writefds, fd_set *restrict errorfds, const struct timespec *restrict timeout, const sigset_t *restrict sigmask); - see http://pubs.opengroup.org/onlinepubs/9699919799/functions/pselect.html --> + see http://pubs.opengroup.org/onlinepubs/9699919799/functions/pselect.html --> false @@ -4795,6 +4795,25 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s + + + + false + + + + 1: + + + + + + + + 0: + + + int sigprocmask(int how, const sigset_t *restrict set, sigset_t *restrict oset); --> false @@ -5908,9 +5927,9 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - - - + + + diff --git a/test/cfg/posix.c b/test/cfg/posix.c index fa34dec54..0bf820c79 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -37,6 +37,14 @@ #include #if __TRACE_H__ // + +void nullPointer_posix_trace_event(trace_event_id_t event_id, const void* restrictdata_ptr, size_t data_len) +{ + // cppcheck-suppress nullPointer + (void) posix_trace_event(event_id, NULL, data_len); + (void) posix_trace_event(event_id, restrictdata_ptr, 0); +} + void nullPointer_posix_trace_trygetnext_event(trace_id_t trid, struct posix_trace_event_info *event, void *data, size_t num_bytes,