Skip to content

Commit 070c0b6

Browse files
committed
doc/go1.16: mention new vet check for asn1.Unmarshal
1 parent 724d072 commit 070c0b6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/go1.16.html

+20
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,26 @@ <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 invalid calls of
385+
<a href="/pkg/encoding/asn1/#Unmarshal"><code>asn1.Unmarshal</code></a>.
386+
If you pass non-pointer or nil argument to
387+
<a href="/pkg/encoding/asn1/#Unmarshal"><code>asn1.Unmarshal</code></a>,
388+
the vet tool will report it.
389+
</p>
390+
391+
<p>
392+
The vet tool already has been checking invalid <code>Unmarshal</code> and
393+
<code>Decode</code> calls of other encoding packages such as
394+
<a href="/pkg/encoding/json"><code>encoding/json</code></a>,
395+
<a href="/pkg/encoding/xml"><code>encoding/xml</code></a>.
396+
This release makes the vet tool check
397+
<a href="/pkg/encoding/asn1"><code>encoding/asn1</code></a>'s one
398+
as well.
399+
</p>
400+
381401
<h2 id="runtime">Runtime</h2>
382402

383403
<p>

0 commit comments

Comments
 (0)