Skip to content

Commit 7593eba

Browse files
committed
C++: Use 'getAstVariable' now that 'getASTVariable' is deprecated.
1 parent 50b7776 commit 7593eba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cpp/ql/src/Critical/OverflowDestination.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ predicate sourceSized(FunctionCall fc, Expr src) {
4949
}
5050

5151
predicate readsVariable(LoadInstruction load, Variable var) {
52-
load.getSourceAddress().(VariableAddressInstruction).getASTVariable() = var
52+
load.getSourceAddress().(VariableAddressInstruction).getAstVariable() = var
5353
}
5454

5555
predicate hasUpperBoundsCheck(Variable var) {

cpp/ql/src/Security/CWE/CWE-129/ImproperArrayIndexValidation.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ predicate linearBoundControls(BasicBlock controlled, SsaDefinition def, StackVar
3737
}
3838

3939
predicate readsVariable(LoadInstruction load, Variable var) {
40-
load.getSourceAddress().(VariableAddressInstruction).getASTVariable() = var
40+
load.getSourceAddress().(VariableAddressInstruction).getAstVariable() = var
4141
}
4242

4343
predicate hasUpperBoundsCheck(Variable var) {

cpp/ql/src/Security/CWE/CWE-190/TaintedAllocationSize.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ predicate allocSink(Expr alloc, DataFlow::Node sink) {
3434
}
3535

3636
predicate readsVariable(LoadInstruction load, Variable var) {
37-
load.getSourceAddress().(VariableAddressInstruction).getASTVariable() = var
37+
load.getSourceAddress().(VariableAddressInstruction).getAstVariable() = var
3838
}
3939

4040
predicate hasUpperBoundsCheck(Variable var) {

0 commit comments

Comments
 (0)