chickadee » cbor » cbor-max-length

cbor-max-lengthparameter

Largest string (in bytes) or array or map (in items) accepted when reading, or #f for no limit (the default). Very long byte strings are read in two steps, so a forged length in a small input cannot force a large allocation.

Decoding errors signal a condition of kinds exn and cbor. The cbor part has the properties reason (one of eof, malformed, type, limit, utf8) and offset (the byte position in the input).