]> Cypherpunks repositories - gostls13.git/commit
encoding/base32: handle NoPadding when using buffered encoding in Close
authorGustav Westling <zegl@westling.xyz>
Wed, 9 May 2018 19:05:46 +0000 (19:05 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 May 2018 22:10:32 +0000 (22:10 +0000)
commit10529a01fd8b0d5cc07eb3f6aa00a0272597684b
treee002a0fdd1142358e24f5f0207ba5b8dea27dbe5
parent0f2d4d00088486297d013fce6235ad0ac01f033e
encoding/base32: handle NoPadding when using buffered encoding in Close

This changes makes encoder.Close aware of how many bytes to write if there
is any data left in the buffer.

Fixes #25295

Change-Id: I4138891359935509cb561c453b8059ba2b9e576b
GitHub-Last-Rev: f374096d2f3cae8635506074f59e1cd440c14844
GitHub-Pull-Request: golang/go#25316
Reviewed-on: https://go-review.googlesource.com/112515
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/encoding/base32/base32.go
src/encoding/base32/base32_test.go