Skip to content

Commit dc725bf

Browse files
KimMachineGundmitshur
authored andcommittedFeb 8, 2021
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: e47c38f GitHub-Pull-Request: #44147 Reviewed-on: https://go-review.googlesource.com/c/go/+/290330 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
1 parent 1901853 commit dc725bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

Diff for: ‎doc/go1.16.html

+10
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,16 @@ <h4 id="vet-frame-pointer">New warning for frame pointer</h4>
378378
fixes.
379379
</p>
380380

381+
<h4 id="vet-asn1-unmarshal">New warning for asn1.Unmarshal</h4>
382+
383+
<p><!-- CL 243397 -->
384+
The vet tool now warns about incorrectly passing a non-pointer or nil argument to
385+
<a href="/pkg/encoding/asn1/#Unmarshal"><code>asn1.Unmarshal</code></a>.
386+
This is like the existing checks for
387+
<a href="/pkg/encoding/json/#Unmarshal"><code>encoding/json.Unmarshal</code></a>
388+
and <a href="/pkg/encoding/xml/#Unmarshal"><code>encoding/xml.Unmarshal</code></a>.
389+
</p>
390+
381391
<h2 id="runtime">Runtime</h2>
382392

383393
<p>

0 commit comments

Comments
 (0)