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 0fcfe57 commit ededfaaCopy full SHA for ededfaa
cpp/ql/src/experimental/Likely Bugs/ArrayAccessProductFlow.ql
@@ -24,10 +24,7 @@ class ArraySizeConfiguration extends ProductFlow::Configuration {
24
ArraySizeConfiguration() { this = "ArraySizeConfiguration" }
25
26
override predicate isSourcePair(DataFlow::Node source1, DataFlow::Node source2) {
27
- exists(GVN sizeGvn |
28
- source1.asConvertedExpr().(AllocationExpr).getSizeExpr() = sizeGvn.getAnExpr() and
29
- source2.asConvertedExpr() = sizeGvn.getAnExpr()
30
- )
+ source1.asConvertedExpr().(AllocationExpr).getSizeExpr() = source2.asConvertedExpr()
31
}
32
33
override predicate isSinkPair(DataFlow::Node sink1, DataFlow::Node sink2) {
0 commit comments