Skip to content

Commit a65d4d5

Browse files
committed
C++/TaintedAllocationSize
1 parent f3d51e0 commit a65d4d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-190/TaintedAllocationSize.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module TaintedAllocationSizeConfig implements DataFlow::ConfigSig {
9595
predicate observeDiffInformedIncrementalMode() { any() }
9696

9797
Location getASelectedSinkLocation(DataFlow::Node sink) {
98-
exists(Expr alloc | result = alloc.getLocation() | allocSink(alloc, sink))
98+
exists(Expr alloc | result = [alloc.getLocation(), sink.getLocation()] | allocSink(alloc, sink))
9999
}
100100
}
101101

0 commit comments

Comments
 (0)