mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user