Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3d51e0 commit a65d4d5Copy full SHA for a65d4d5
1 file changed
cpp/ql/src/Security/CWE/CWE-190/TaintedAllocationSize.ql
@@ -95,7 +95,7 @@ module TaintedAllocationSizeConfig implements DataFlow::ConfigSig {
95
predicate observeDiffInformedIncrementalMode() { any() }
96
97
Location getASelectedSinkLocation(DataFlow::Node sink) {
98
- exists(Expr alloc | result = alloc.getLocation() | allocSink(alloc, sink))
+ exists(Expr alloc | result = [alloc.getLocation(), sink.getLocation()] | allocSink(alloc, sink))
99
}
100
101
0 commit comments