Skip to content

Commit 373b38e

Browse files
MathiasVPgeoffw0
andauthored
Update cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/tests.cpp
Co-authored-by: Geoffrey White <[email protected]>
1 parent 202a5e8 commit 373b38e

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ struct HasSomeFields {
713713
};
714714

715715
void test34() {
716-
memset(&c, 0, sizeof(HasSomeFields) - offsetof(HasSomeFields, b)); // BAD
716+
memset(&b, 0, sizeof(HasSomeFields) - offsetof(HasSomeFields, a)); // BAD
717717
};
718718

719719
void test35() {

0 commit comments

Comments
 (0)