mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Revert "Merge pull request #4784 from MathiasVP/mathiasvp/reverse-read-take-3"
This reverts commit1b3d69d617, reversing changes made to527c41520e.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
void sink(void *o); void sink(const char *o);
|
||||
void sink(void *o);
|
||||
void *user_input(void);
|
||||
|
||||
struct S {
|
||||
@@ -135,13 +135,3 @@ void test_outer_with_ref(Outer *pouter) {
|
||||
sink(pouter->inner_ptr->a); // $ ast MISSING: ir
|
||||
sink(pouter->a); // $ ast,ir
|
||||
}
|
||||
|
||||
void taint_a_ptr(const char **pa) {
|
||||
*pa = (char*)user_input();
|
||||
}
|
||||
|
||||
void test_const_char_ref() {
|
||||
const char* s;
|
||||
taint_a_ptr(&s);
|
||||
sink(s); // $ ast ir=140:9 ir=140:16
|
||||
}
|
||||
Reference in New Issue
Block a user