pw_protobuf: Enforce kMaxVarintSize Updates the streaming encoder to enforce submessage size limits introduced by a smaller kMaxVarintSize. Switches the unit test for this configuration option to use the new StreamingEncoder interfaces. Bug: 384 No-Docs-Update-Reason: Internal bugfix Change-Id: Iec06858c88b4b402292076bb410328ad8693debd Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/46620 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
See our website: http://pigweed.dev