mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 03:14:16 +00:00
59a8581684
Before this change, when encountering an io.EOF after reading at least one byte, the zero value byte was — incorrectly — appended to sizeBuf, and the io.EOF was ignored, resulting in a complete varint (0 has no continuation bit), which in turn resulted in incorrect unmarshalling. Change-Id: If06d45039d998eaddf91d0864814bb31d4cb7ae0 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/505555 Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
protodelim_test.go | ||
protodelim.go |