mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01: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:
committed by
GitHub
parent
202a5e86da
commit
373b38e881
@@ -713,7 +713,7 @@ struct HasSomeFields {
|
||||
};
|
||||
|
||||
void test34() {
|
||||
memset(&c, 0, sizeof(HasSomeFields) - offsetof(HasSomeFields, b)); // BAD
|
||||
memset(&b, 0, sizeof(HasSomeFields) - offsetof(HasSomeFields, a)); // BAD
|
||||
};
|
||||
|
||||
void test35() {
|
||||
|
||||
Reference in New Issue
Block a user