File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,26 @@ <h4 id="vet-frame-pointer">New warning for frame pointer</h4>
378
378
fixes.
379
379
</ p >
380
380
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
+
381
401
< h2 id ="runtime "> Runtime</ h2 >
382
402
383
403
< p >
You can’t perform that action at this time.
0 commit comments