diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-03-20 16:00:34 +1100 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2014-03-20 16:00:34 +1100 |
| commit | a2770af447a470cf34841f09d0a5bf23a9b5ea9e (patch) | |
| tree | 2eec5480deb493375d7e5b5abf44866e4e70c105 /test/fixedbugs/bug385_32.go | |
| parent | 90a66fa6aff43214298bbb3e184b2eb8c2bd6850 (diff) | |
| download | go-a2770af447a470cf34841f09d0a5bf23a9b5ea9e.tar.xz | |
base64: fix bug that decoder fails to detect corruption
Encoding.Decode() failed to detect trailing garbages if input contains "==" followed by garbage smaller than 3 bytes (for example, it failed to detect "x" in "AA==x"). This patch fixes the bug and adds a few tests.
LGTM=nigeltao
R=golang-codereviews, bradfitz, nigeltao
CC=golang-codereviews
https://golang.org/cl/75340044
Diffstat (limited to 'test/fixedbugs/bug385_32.go')
0 files changed, 0 insertions, 0 deletions
