protobuf-go/encoding
Michael Stapelberg 59a8581684 encoding/protodelim: fix handling of io.EOF
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>
2023-06-26 07:38:07 +00:00
..
protodelim encoding/protodelim: fix handling of io.EOF 2023-06-26 07:38:07 +00:00
protojson encoding: add MarshalAppend to protojson and prototext 2023-05-01 15:10:15 +00:00
prototext encoding: add MarshalAppend to protojson and prototext 2023-05-01 15:10:15 +00:00
protowire all: update links to Protocol Buffer documentation 2023-02-08 13:52:20 +00:00
bench_test.go all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00