]> Cypherpunks repositories - gostls13.git/commit
encoding/base64: add alphabet and padding restrictions
authorJosselin Costanzi <josselin@costanzi.fr>
Sun, 5 Mar 2017 17:55:18 +0000 (18:55 +0100)
committerIan Lance Taylor <iant@golang.org>
Tue, 7 Mar 2017 02:53:23 +0000 (02:53 +0000)
commit9207a7437e382e4a05436fc26a2e24740a0492ec
treef5a93f0f10d38cc42c8e0dc124f57f464cba3fb5
parent8d3f29577d95aa06b2653d20e331aa47f759db06
encoding/base64: add alphabet and padding restrictions

Document and check that the alphabet cannot contain '\n' or '\r'.
Document that the alphabet cannot contain the padding character.
Document that the padding character must be equal or bellow '\xff'.
Document that the padding character must not be '\n' or '\r'.

Fixes #19343
Fixes #19318

Change-Id: I6de0034d347ffdf317d7ea55d6fe38b01c2c4c03
Reviewed-on: https://go-review.googlesource.com/37838
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/base64/base64.go