Update cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/tests.cpp

Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
Ben Rodes
2024-09-05 10:07:19 -04:00
committed by GitHub
parent 78898955b6
commit 8ab22feae1

View File

@@ -679,7 +679,7 @@ const MYSTRUCT _myStruct = { 0 };
typedef const MYSTRUCT& MYSTRUCTREF;
// False positive case due to use of typedefs
int test27(MYSTRUCTREF g)
int test28(MYSTRUCTREF g)
{
return memcmp(&g, &_myStruct, sizeof(MYSTRUCT)); // GOOD
}