We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df9c756 commit e2f671eCopy full SHA for e2f671e
cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/InvalidPointerToDereference.qll
@@ -174,6 +174,8 @@ private module InvalidPointerToDerefConfig implements DataFlow::StateConfigSig {
174
}
175
176
predicate isBarrier(DataFlow::Node node, FlowState pai) {
177
+ // `node = getABarrierNode(pai)` ensures that node < pai, so this node is safe to dereference.
178
+ // Note that this is the only place where the `FlowState` is used in this configuration.
179
node = InvalidPointerToDerefBarrier::getABarrierNode(pai)
180
181
0 commit comments