]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: detect non-pointer arguments for unmarshal and decode
authorIan Davis <nospam@iandavis.com>
Fri, 5 Oct 2018 09:07:29 +0000 (10:07 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 11 Oct 2018 18:45:18 +0000 (18:45 +0000)
commit7fb60eb1a2aaed7a801ab15bd7aaeaabdbb5e5db
treef8f2c7739143096d3d26c859c2b3d4c8dc5ed2c6
parent76f578459a3db0153237816a7513497092463aae
cmd/vet: detect non-pointer arguments for unmarshal and decode

Checks usage of Unmarshal and Decode functions in json, gob and
xml packages to detect attempts to decode into non-pointer types.

Fixes #27564

Change-Id: I07bbd5be82d61834ffde9af9937329d7fb1f05d0
Reviewed-on: https://go-review.googlesource.com/c/139997
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/vet/testdata/unmarshal.go [new file with mode: 0644]
src/cmd/vet/unmarshal.go [new file with mode: 0644]