mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Fix comment.
This commit is contained in:
committed by
GitHub
parent
6c14288fa7
commit
31690dee58
@@ -694,9 +694,9 @@ private predicate simpleInstructionLocalFlowStep(Operand opFrom, Instruction iTo
|
||||
opFrom.getAnyDef() instanceof WriteSideEffectInstruction and
|
||||
chi.getPartialOperand() = opFrom and
|
||||
not chi.isResultConflated() and
|
||||
// In a call such as `set_value(&x->val);`
|
||||
// we don't want the memory that of `x` to receive dataflow. This is handled by field flow. If we
|
||||
// add dataflow here we get field to object flow.
|
||||
// In a call such as `set_value(&x->val);` we don't want the memory representing `x` to receive
|
||||
// dataflow by a simple step. Instead, this is handled by field flow. If we add a simple step here
|
||||
// we can get field-to-object flow.
|
||||
not chi.isPartialUpdate()
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user