mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
C++: use-use flow in ArrayAccessProductFlow
This commit is contained in:
committed by
Mathias Vorreiter Pedersen
parent
0fcfe5772f
commit
ededfaa40b
@@ -24,10 +24,7 @@ class ArraySizeConfiguration extends ProductFlow::Configuration {
|
||||
ArraySizeConfiguration() { this = "ArraySizeConfiguration" }
|
||||
|
||||
override predicate isSourcePair(DataFlow::Node source1, DataFlow::Node source2) {
|
||||
exists(GVN sizeGvn |
|
||||
source1.asConvertedExpr().(AllocationExpr).getSizeExpr() = sizeGvn.getAnExpr() and
|
||||
source2.asConvertedExpr() = sizeGvn.getAnExpr()
|
||||
)
|
||||
source1.asConvertedExpr().(AllocationExpr).getSizeExpr() = source2.asConvertedExpr()
|
||||
}
|
||||
|
||||
override predicate isSinkPair(DataFlow::Node sink1, DataFlow::Node sink2) {
|
||||
|
||||
Reference in New Issue
Block a user