CreateCodedInput is created from the underlying array behind the ByteString. If this was created from a larger array (via Memory<byte> or ArrayPool etc) then the CodedInput refers to the wrong section of memory. Change is to add the offset and count like the other methods that use the ArraySegment (ToString, ToBase64, WriteTo).pull/8740/head
parent
18d980f380
commit
9848fe2bf7
2 changed files with 17 additions and 1 deletions
Loading…
Reference in new issue