mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
C++: Define sources better so that we catch all the test cases.
This commit is contained in:
@@ -1 +1,3 @@
|
||||
| test.cpp:14:16:14:16 | p | unsafe_put_user write user-mode pointer $@ without check. | test.cpp:14:16:14:16 | p | p |
|
||||
| test.cpp:16:22:16:23 | ref arg & ... | unsafe_put_user write user-mode pointer $@ without check. | test.cpp:16:22:16:23 | ref arg & ... | ref arg & ... |
|
||||
| test.cpp:37:22:37:23 | ref arg & ... | unsafe_put_user write user-mode pointer $@ without check. | test.cpp:37:22:37:23 | ref arg & ... | ref arg & ... |
|
||||
| test.cpp:65:22:65:28 | ref arg & ... | unsafe_put_user write user-mode pointer $@ without check. | test.cpp:65:22:65:28 | ref arg & ... | ref arg & ... |
|
||||
|
||||
@@ -36,7 +36,7 @@ void test3()
|
||||
|
||||
SYSC_SOMESYSTEMCALL(&v);
|
||||
|
||||
unsafe_put_user(123, &v); // BAD [NOT DETECTED]
|
||||
unsafe_put_user(123, &v); // BAD
|
||||
}
|
||||
|
||||
void test4()
|
||||
@@ -64,7 +64,7 @@ void test5()
|
||||
|
||||
SYSC_SOMESYSTEMCALL(&myData);
|
||||
|
||||
unsafe_put_user(123, &(myData.x)); // BAD [NOT DETECTED]
|
||||
unsafe_put_user(123, &(myData.x)); // BAD
|
||||
}
|
||||
|
||||
void test6()
|
||||
|
||||
Reference in New Issue
Block a user