Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_protobuf: Skip unknown fields when struct decoding
Protobuf parsers are expected to skip unknown fields, and it turns out in practice encoders sometimes skip extra fields of their own in using this as a guarantee. Change StreamDecoder::Read to skip unknown fields, and file a TODO bug to figure out how to allow them to be inspected and serialized back out again later. Change-Id: If1d74174522178bc13e64162dc67c7c2e8b8c713 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/92020 Pigweed-Auto-Submit: Scott James Remnant <[email protected]> Reviewed-by: Armando Montanez <[email protected]> Commit-Queue: Auto-Submit <[email protected]>
- Loading branch information