]> Cypherpunks repositories - gostls13.git/commit
encoding/base64: This change modifies Go to take strict option when decoding base64
authorXuyang Kang <xuyangkang@gmail.com>
Sun, 17 Jul 2016 07:23:56 +0000 (00:23 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 12 Oct 2016 03:56:18 +0000 (03:56 +0000)
commit87b1aaa37cefec8deacdf9c3c30d26015bdfb00b
tree3a6fdc359ae9ddc215e72dce66db75042b176eb6
parent56b5546b9138f80bb0b20aebcc1fa551096e87df
encoding/base64: This change modifies Go to take strict option when decoding base64

If strict option is enabled, when decoding, instead of skip the padding
bits, it will do strict check to enforce they are set to zero.

Fixes #15656

Change-Id: I869fb725a39cc9dde44dbc4ff0046446e7abc642
Reviewed-on: https://go-review.googlesource.com/24964
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/base64/base64.go
src/encoding/base64/base64_test.go