pub const MAX_BLOB_SIZE: usize = _; // 104_857_600usizeExpand description
Maximum size of a blob in bytes (100 MiB).
Decoders should reject blobs larger than this limit to prevent
memory‑exhaustion attacks. This is not enforced at the type level
(i.e., Blob::new(data) will accept any Vec<u8>), because legitimate
use‑cases (e.g., scientific datasets) may require larger blobs. However,
any decoder that processes untrusted input must respect this bound and
return VctrlError::CorruptedData if
the encoded size exceeds MAX_BLOB_SIZE.
use libvctrl_handler::MAX_BLOB_SIZE;
// The reference decoder in libvctrl_core uses this limit:
// if data_len > MAX_BLOB_SIZE { return Err(…); }