C++: Also mention all locations in the AST case

This commit is contained in:
Jeroen Ketema
2023-02-10 09:47:19 +01:00
parent 12930c68fb
commit 350fb89ebf

View File

@@ -563,18 +563,18 @@ namespace IndirectFlowThroughGlobals {
}
void f() {
sink(*globalInt); // $ ir=562:17 ir=576:17
sink(*globalInt); // $ ir=562:17 ir=576:17 MISSING: ast=562:17 ast=576:17
taintGlobal();
sink(*globalInt); // $ ir=562:17 ir=576:17 MISSING: ast=562:17
sink(*globalInt); // $ ir=562:17 ir=576:17 MISSING: ast=562:17 ast=576:17
}
void calledAfterTaint() {
sink(*globalInt); // $ ir=576:17 ir=562:17 MISSING: ast=576:17
sink(*globalInt); // $ ir=562:17 ir=576:17 MISSING: ast=562:17 ast=576:17
}
void taintAndCall() {
globalInt = indirect_source();
calledAfterTaint();
sink(*globalInt); // $ ir=576:17 ir=562:17 MISSING: ast=576:17
sink(*globalInt); // $ ir=562:17 ir=576:17 MISSING: ast=562:17 ast=576:17
}
}