CodeQL library for Go
codeql/go-all 0.7.15-dev (changelog, source)
Search

Predicate AllocationSizeOverflow::isSinkWithAllocationSize

Holds if nd is at a position where overflow might occur, and its result is used to compute allocation size allocsz.

Import path

import semmle.go.security.AllocationSizeOverflow
predicate isSinkWithAllocationSize(Node nd, Node allocsz)