Skip to content

Commit

Permalink
fix: proto value unmarshal string on appending rune (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari authored Sep 16, 2024
1 parent 807b3a6 commit 8e25a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proto/value_unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func utf8String(b []byte) string {
for len(b) > 0 {
r, size := utf8.DecodeRune(b)
if r != utf8.RuneError {
buf = append(buf, byte(r)) // normal append as r should be valid now
buf = utf8.AppendRune(buf, r)
}
b = b[size:]
}
Expand Down

0 comments on commit 8e25a8f

Please sign in to comment.