FasterXML / FasterXML/jackson-dataformats-binary

(protobuf) Support `StreamReadConstraints.maxDocumentLength` in `ProtobufParser`

オープン
#783 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。