Skip to content

Commit

Permalink
Update cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/test…
Browse files Browse the repository at this point in the history
…s.cpp

Co-authored-by: Geoffrey White <[email protected]>
  • Loading branch information
MathiasVP and geoffw0 authored Jan 29, 2025
1 parent 202a5e8 commit 373b38e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 373b38e

Please sign in to comment.