Documentation
¶
Index ¶
Constants ¶
View Source
const MaxIProtoLen = 1 << 20
MaxIProtoLen caps how many elements a generated UnmarshalIProto will pre-allocate for a length-prefixed slice or map, bounding memory amplification when decoding untrusted input: a short message can encode a huge element count, and make([]T, n) / make(map, n) reserves n*sizeof(elem) before any element is read. Decoding a slice or map longer than this fails with iproto.ErrOverflow. Declare a constant of this name in the package to override the default.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slice ¶
type Slice []iproto.MarshalerUnmarshaler
Click to show internal directories.
Click to hide internal directories.