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:
Mathias Vorreiter Pedersen
2025-01-29 11:03:52 +00:00
committed by GitHub
parent 202a5e86da
commit 373b38e881

View File

@@ -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() {