mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
C++: Remove flow into ReadSideEffect instructions in simpleInstructionLocalFlowStep
This commit is contained in:
@@ -25,13 +25,10 @@ class TestAllocationConfig extends TaintTracking::Configuration {
|
||||
sink.(DataFlow::ExprNode).getConvertedExpr() instanceof ReferenceDereferenceExpr
|
||||
)
|
||||
or
|
||||
sink
|
||||
.asInstruction()
|
||||
.(ReadSideEffectInstruction)
|
||||
.getPrimaryInstruction()
|
||||
.(CallInstruction)
|
||||
.getStaticCallTarget()
|
||||
.hasName("sink")
|
||||
exists(ReadSideEffectInstruction read |
|
||||
read.getSideEffectOperand() = sink.asOperand() and
|
||||
read.getPrimaryInstruction().(CallInstruction).getStaticCallTarget().hasName("sink")
|
||||
)
|
||||
}
|
||||
|
||||
override predicate isSanitizer(DataFlow::Node barrier) {
|
||||
|
||||
Reference in New Issue
Block a user