File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
303
303
< dl id ="encoding/binary "> < dt > < a href ="/pkg/encoding/binary/ "> encoding/binary</ a > </ dt >
304
304
< dd >
305
305
< p > <!-- CL 299531 -->
306
- TODO: < a href ="https://golang.org/cl/299531 "> https://golang.org/cl/299531</ a > : limit bytes read by Uvarint to <= 10
306
+ < code > binary.Uvarint</ code > will stop reading after < code > 10 bytes</ code > to avoid
307
+ wasted computations. If more than < code > 10 bytes</ code > are needed, the byte count returned is < code > -11</ code > .
308
+ < br />
309
+ Previous Go versions could return larger negative counts when reading incorrectly encoded varints.
307
310
</ p >
308
311
</ dd >
309
312
</ dl > <!-- encoding/binary -->
You can’t perform that action at this time.
0 commit comments