mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
C++: Remove the '+ 1' in 'getAFlowStateForNode'.
This commit is contained in:
@@ -123,7 +123,7 @@ private module SizeBarrier {
|
||||
private int getAFlowStateForNode(DataFlow::Node node) {
|
||||
exists(DataFlow::Node source |
|
||||
flow(source, node) and
|
||||
hasSize(_, source, result + 1)
|
||||
hasSize(_, source, result)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ private module SizeBarrier {
|
||||
pragma[only_bind_into](k), pragma[only_bind_into](edge)) and
|
||||
bounded(result, value.getAnInstruction(), delta) and
|
||||
g.controls(result.getBlock(), edge) and
|
||||
k <= getAFlowStateForNode(right)
|
||||
k < getAFlowStateForNode(right)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user