mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C++: Also mention all locations in the AST case
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user