From dc725bfb3c3f29c7395e088d25ef6bf8dba8f129 Mon Sep 17 00:00:00 2001
From: KimMachineGun
Date: Mon, 8 Feb 2021 23:27:52 +0000
Subject: [PATCH] doc/go1.16: mention new vet check for asn1.Unmarshal
This vet check was added in CL 243397.
For #40700.
Change-Id: Ibff6df9395d37bb2b84a791443578009f23af4fb
GitHub-Last-Rev: e47c38f6309f31a6de48d4ffc82078d7ad45b171
GitHub-Pull-Request: golang/go#44147
Reviewed-on: https://go-review.googlesource.com/c/go/+/290330
Trust: Ian Lance Taylor
Reviewed-by: Dmitri Shuralyov
---
doc/go1.16.html | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/doc/go1.16.html b/doc/go1.16.html
index 878bf0d0293..f6f72c3882c 100644
--- a/doc/go1.16.html
+++ b/doc/go1.16.html
@@ -378,6 +378,16 @@ func TestFoo(t *testing.T) {
fixes.
+New warning for asn1.Unmarshal
+
+
+ The vet tool now warns about incorrectly passing a non-pointer or nil argument to
+ asn1.Unmarshal
.
+ This is like the existing checks for
+ encoding/json.Unmarshal
+ and encoding/xml.Unmarshal
.
+
+
Runtime