Skip to content

Commit d942a3b

Browse files
committed
C++: Change definition of isChiForAllAliasedMemory to recurse through inexact PhiInstructions
1 parent db33c36 commit d942a3b

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
@@ -275,7 +275,7 @@ private predicate isChiForAllAliasedMemory(Instruction instr) {
275275
or
276276
isChiForAllAliasedMemory(instr.(ChiInstruction).getTotal())
277277
or
278-
isChiForAllAliasedMemory(instr.(PhiInstruction).getAnInput())
278+
isChiForAllAliasedMemory(instr.(PhiInstruction).getAnInputOperand().getAnyDef() )
279279
}
280280

281281
private predicate modelTaintToReturnValue(Function f, int parameterIn) {

0 commit comments

Comments
 (0)