C++: Update test annotations for use-use dataflow

This commit is contained in:
Jeroen Ketema
2023-02-14 14:48:08 +01:00
parent 73d877e3a5
commit 9e462866a0
11 changed files with 25 additions and 25 deletions

View File

@@ -19,7 +19,7 @@ void test1(int p)
{
sys_somesystemcall(&p);
unsafe_put_user(123, &p); // BAD
unsafe_put_user(123, &p); // BAD [NOT DETECTED]
}
void test2(int p)
@@ -40,7 +40,7 @@ void test3()
sys_somesystemcall(&v);
unsafe_put_user(123, &v); // BAD
unsafe_put_user(123, &v); // BAD [NOT DETECTED]
}
void test4()
@@ -68,7 +68,7 @@ void test5()
sys_somesystemcall(&myData);
unsafe_put_user(123, &(myData.x)); // BAD
unsafe_put_user(123, &(myData.x)); // BAD [NOT DETECTED]
}
void test6()