Skip to content

Commit 1e6c983

Browse files
committed
C++: Use getASTVariable in DefaultTaintTracking
This library is not yet used in a query or test, so it broke silently when `VariableAddressInstruction.getVariable` was removed.
1 parent ecd4c08 commit 1e6c983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/ir/dataflow/DefaultTaintTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private class DefaultTaintTrackingCfg extends DataFlow::Configuration {
3737
}
3838

3939
private predicate accessesVariable(CopyInstruction copy, Variable var) {
40-
exists(VariableAddressInstruction va | va.getVariable().getAST() = var |
40+
exists(VariableAddressInstruction va | va.getASTVariable() = var |
4141
copy.(StoreInstruction).getDestinationAddress() = va
4242
or
4343
copy.(LoadInstruction).getSourceAddress() = va

0 commit comments

Comments
 (0)