FasterXML / jackson-dataformats-binary

Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Apache License 2.0
310 stars 133 forks source link

Support `StreamReadConstraints.maxDocumentLength` validation for CBOR, Smile #392

Closed pjfanning closed 8 months ago

pjfanning commented 1 year ago

https://github.com/FasterXML/jackson-core/blob/2.16/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java

equivalent of https://github.com/FasterXML/jackson-dataformats-text/issues/430 and #358

In particular, the 2 new ones (in 2.16)

These settings are not likely to be supported for data formats in this project. Some support already exists for the pre-existing StreamReadConstraints settings.

This issue specifically for supporting maxDocumentLength validation; #475 is for name length validation.

cowtowncoder commented 1 year ago

Limited to CBOR, Smile for this issue. (as two implementations are quite similar and probably be worked on at same time). May/should create separate ones for Avro, Protobuf, Ion; those implementations quite different so not that much shared work.