Skip to content

Commit f5db3a9

Browse files
vito-cgaryburd
authored andcommitted
Fixing issue with BufferLines Unpack when there are a lot of long lines
1 parent 4ab7738 commit f5db3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/unpack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (d *Decoder) Unpack() error {
209209
} else {
210210
d.peek = false
211211
d.p = make([]byte, nn)
212-
_, err := d.r.Read(d.p)
212+
_, err := io.ReadFull(d.r, d.p)
213213
if err != nil {
214214
return d.fatal(err)
215215
}

0 commit comments

Comments
 (0)