CBORReader: Add alternate ::Read() which allows extraneous data
Before this CL, CBORReader::Read() rejected CBOR-encoded data with extra bytes at the end, and reported CBORReader::DecoderError::EXTRANEOUS_DATA. This CL introduces alternative CBORReader::Read() which allows extraneous data following CBOR-encoded data. Callers can tell the size of the CBOR-encoded data via |num_consumed_bytes|. Bug: 803774 Change-Id: I154534f5049e94f3d20e67c4889e711332b1726f Reviewed-on: https://chromium-review.googlesource.com/920802 Commit-Queue: Kouhei Ueno <kouhei@chromium.org> Reviewed-by:Balazs Engedy <engedy@chromium.org> Cr-Commit-Position: refs/heads/master@{#537699}
Showing
This diff is collapsed.
Please register or sign in to comment