1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:54:43 -07:00
go/src
Rui Ueyama a2770af447 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
2014-03-20 16:00:34 +11:00
..
cmd cmd/6g: remove unused stosptr variable 2014-03-19 17:18:25 -07:00
lib9 lib9/utf: bring C environment up to Unicode 6.3.0 2014-02-25 17:49:32 -08:00
libbio lib9: enable on Plan 9 2014-02-13 20:06:41 +01:00
liblink liblink, runtime: make nacl/386 binaries valid. 2014-03-14 21:33:55 +01:00
libmach libmach: use different names for different Ureg types 2014-01-08 20:37:27 -05:00
pkg base64: fix bug that decoder fails to detect corruption 2014-03-20 16:00:34 +11:00
all.bash
all.bat
all.rc
clean.bash
clean.bat
clean.rc
make.bash cmd/go, cmd/cgo, make.bash: cross compiling with cgo enabled 2014-02-06 09:11:00 -08:00
make.bat
Make.dist
make.rc lib9: enable on Plan 9 2014-02-13 20:06:41 +01:00
race.bash race.bash, race.bat: build a race enabled cmd/cgo before trying to use it 2013-09-29 10:34:41 +10:00
race.bat race.bat: set exit status 2013-12-17 15:09:42 +04:00
run.bash run.bash: explain why we set GOMAXPROCS for runtime test 2014-03-06 13:16:14 +04:00
run.bat run.bash: explain why we set GOMAXPROCS for runtime test 2014-03-06 13:16:14 +04:00
run.rc run.bash: explain why we set GOMAXPROCS for runtime test 2014-03-06 13:16:14 +04:00
sudo.bash