]> Cypherpunks repositories - gostls13.git/commit
encoding/binary: make Read return an error when data is not a pointer
authorUdalov Max <re.udalov@gmail.com>
Wed, 3 Jul 2019 20:31:50 +0000 (23:31 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 8 Nov 2019 18:00:31 +0000 (18:00 +0000)
commitc444ec308506463bd4ab3226c6aab55746347780
treeb1764ecb142508f061ffedca86c0027b3c705f32
parenta84ac18936bb60f5037b84ccc47ae5f591f7e1a1
encoding/binary: make Read return an error when data is not a pointer

Make binary.Read return an error when passed `data` argument is not
a pointer to a fixed-size value or a slice of fixed-size values.

Fixes #32927

Change-Id: I04f48be55fe9b0cc66c983d152407d0e42cbcd95
Reviewed-on: https://go-review.googlesource.com/c/go/+/184957
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/binary/binary.go
src/encoding/binary/binary_test.go