golang/src/encoding/base32
Niklas Ott c7c578cdf3 encoding/base32: use correct length for unpadded buffer in Read
If unpadded content was passed, in some occassions content was omitted,
because the division result was floored. Ceiling it makes sure all
content is always read.

Fixes #65166

Change-Id: I1d8ee7ef436080483ed8f0e615b70a1013455f92
Reviewed-on: https://go-review.googlesource.com/c/go/+/581415
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-14 16:25:54 +00:00
..
base32.go encoding/base32: use correct length for unpadded buffer in Read 2024-05-14 16:25:54 +00:00
base32_test.go encoding/base32: use correct length for unpadded buffer in Read 2024-05-14 16:25:54 +00:00
example_test.go encoding/base32: Add examples for Encode/Decode 2021-09-27 16:54:36 +00:00