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 a2b8eb9 commit 6d949cbCopy full SHA for 6d949cb
cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/AllocationToInvalidPointer.qll
@@ -120,7 +120,7 @@ private module SizeBarrier {
120
121
private import DataFlow::Global<SizeBarrierConfig>
122
123
- private int getAFlowStateForNode(DataFlow::Node node) {
+ private int getASizeAddend(DataFlow::Node node) {
124
exists(DataFlow::Node source |
125
flow(source, node) and
126
hasSize(_, source, result)
@@ -155,7 +155,7 @@ private module SizeBarrier {
155
pragma[only_bind_into](k), pragma[only_bind_into](edge)) and
156
bounded(result, value.getAnInstruction(), delta) and
157
g.controls(result.getBlock(), edge) and
158
- k < getAFlowStateForNode(right)
+ k < getASizeAddend(right)
159
)
160
}
161
0 commit comments