Skip to content

Commit ededfaa

Browse files
rdmarsh2MathiasVP
authored andcommitted
C++: use-use flow in ArrayAccessProductFlow
1 parent 0fcfe57 commit ededfaa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cpp/ql/src/experimental/Likely Bugs/ArrayAccessProductFlow.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ class ArraySizeConfiguration extends ProductFlow::Configuration {
2424
ArraySizeConfiguration() { this = "ArraySizeConfiguration" }
2525

2626
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-
)
27+
source1.asConvertedExpr().(AllocationExpr).getSizeExpr() = source2.asConvertedExpr()
3128
}
3229

3330
override predicate isSinkPair(DataFlow::Node sink1, DataFlow::Node sink2) {

0 commit comments

Comments
 (0)