diff --git a/doc/go1.17.html b/doc/go1.17.html index a2e0f9454b1..3cd324e0ab5 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -303,7 +303,10 @@ Do not send CLs removing the interior tags from such phrases.
- TODO: https://golang.org/cl/299531: limit bytes read by Uvarint to <= 10
+ binary.Uvarint
will stop reading after 10 bytes
to avoid
+ wasted computations. If more than 10 bytes
are needed, the byte count returned is -11
.
+
+ Previous Go versions could return larger negative counts when reading incorrectly encoded varints.