From c5a082fd8e51c69fdfacec137a9a3bdbf70782d2 Mon Sep 17 00:00:00 2001 From: Calum Grant Date: Fri, 18 Oct 2024 19:45:29 +0100 Subject: [PATCH] C++: Fix CWE-022 --- .../test/query-tests/Security/CWE/CWE-022/semmle/tests/stdlib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/ql/test/query-tests/Security/CWE/CWE-022/semmle/tests/stdlib.h b/cpp/ql/test/query-tests/Security/CWE/CWE-022/semmle/tests/stdlib.h index 53344da57d6d..8c0cb21482be 100644 --- a/cpp/ql/test/query-tests/Security/CWE/CWE-022/semmle/tests/stdlib.h +++ b/cpp/ql/test/query-tests/Security/CWE/CWE-022/semmle/tests/stdlib.h @@ -17,3 +17,4 @@ void *malloc(size_t size); double strtod(const char *ptr, char **endptr); char *getenv(const char *name); ssize_t read(int fd, void *buffer, size_t count); +int snprintf(char *s, size_t n, const char *format, ...);