Skip to content

Commit e0d16a8

Browse files
committed
1 parent 53e1939 commit e0d16a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

go/ql/lib/semmle/go/security/AllocationSizeOverflow.qll

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ module AllocationSizeOverflow {
5656
succ = c
5757
)
5858
}
59+
60+
predicate observeDiffInformedIncrementalMode() { any() }
61+
62+
Location getASelectedSinkLocation(DataFlow::Node sink) {
63+
result = sink.getLocation()
64+
or
65+
exists(DataFlow::Node allocsz |
66+
isSinkWithAllocationSize(sink, allocsz) and
67+
result = allocsz.getLocation()
68+
)
69+
}
5970
}
6071

6172
/** Tracks taint flow to find allocation-size overflows. */

0 commit comments

Comments
 (0)