Documentation
¶
Index ¶
Constants ¶
View Source
const MaxDecompressedSize = 64 << 20 // 64 MiB
MaxDecompressedSize caps the output size of a single Decompress call. This protects against zstd decompression bombs: small adversarial inputs that would otherwise expand to arbitrary sizes and OOM the process. 64 MiB is 3-4 orders of magnitude above realistic per-row payload sizes (log bodies, attribute JSON are normally KiB-range).
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
Decompress decompresses the input data using Zstandard. The output is capped at MaxDecompressedSize; larger outputs return an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.