FasterXML / FasterXML/jackson-dataformats-binary
(protobuf) Support `StreamReadConstraints.maxDocumentLength` in `ProtobufParser`
オープン
- 主要言語
- Java
- スター
- 347
- フォーク
- 156
- 平均マージ
- 3日 3時間
- マージ済み PR(30日)
- 22
説明
`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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。