FasterXML / FasterXML/jackson-dataformats-binary
(protobuf) Support `StreamReadConstraints.maxDocumentLength` in `ProtobufParser`
Open
- Dominant language
- Java
- Stars
- 347
- Forks
- 156
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 22
Description
`ProtobufParser` does not apply `StreamReadConstraints.maxDocumentLength` — neither for streaming (`InputStream`) input when reloading its buffer, nor up front for fixed `byte[]` input. CBOR and Smile both do (see #649 / [core#1548] for the `byte[]` case).
Add `validateDocumentLength()` calls in `loadMore()` / `_loadToHaveAtLeast()` and in `ProtobufFactory._createParser(..., byte[], int, int)`, matching the CBOR implementation.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.