summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2015-09-17 20:08:48 +0200
committerEmilia Kasper <emilia@openssl.org>2015-09-17 21:42:38 +0200
commitb785504a10310cb2872270eb409b70971be5e76e (patch)
tree0da118e9397503bf23cae232e398acecaa026d9b /test
parentRT3757: base64 encoding bugs (diff)
downloadopenssl-b785504a10310cb2872270eb409b70971be5e76e.tar.xz
openssl-b785504a10310cb2872270eb409b70971be5e76e.zip
base64 decode: check for high bit
Previously, the conversion would silently coerce to ASCII. Now, we error out. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test')
-rw-r--r--test/evptests.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/evptests.txt b/test/evptests.txt
index e8de2c16ec..24ef573374 100644
--- a/test/evptests.txt
+++ b/test/evptests.txt
@@ -2690,6 +2690,12 @@ Output = 61475600736247383d0a
Encoding = invalid
Output = 61475601736247383d0a
+Encoding = invalid
+Output = 61475680736247383d0a
+
+Encoding = invalid
+Output = e14756736247383d0a
+
Encoding = canonical
Input = "OpenSSLOpenSSL\n"
Output = "T3BlblNTTE9wZW5TU0wK\n"