aboutsummaryrefslogtreecommitdiff
path: root/tests/data_files
diff options
context:
space:
mode:
authorDavid Brown <david.brown@linaro.org>2020-10-16 13:15:59 -0600
committerDavid Brown <david.brown@linaro.org>2020-10-20 13:35:21 -0600
commit3bea9f61e61ed3307b2471634afcfc9b80fd3706 (patch)
treec79b8199887cbc778c199f586080bea290b616e4 /tests/data_files
parentd696e7d91e42a190d06760279d2e396392143454 (diff)
downloadmbedtls-3bea9f61e61ed3307b2471634afcfc9b80fd3706.zip
mbedtls-3bea9f61e61ed3307b2471634afcfc9b80fd3706.tar.gz
mbedtls-3bea9f61e61ed3307b2471634afcfc9b80fd3706.tar.bz2
Add a context-info.sh test for 0xFF chars
Add a non-regression test for ssl_context_info to ensure the base64 decoder doesn't stop processing when it encounters a 0xFF character. Signed-off-by: David Brown <david.brown@linaro.org>
Diffstat (limited to 'tests/data_files')
-rw-r--r--tests/data_files/base64/def_b64_ff.bin5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/data_files/base64/def_b64_ff.bin b/tests/data_files/base64/def_b64_ff.bin
new file mode 100644
index 0000000..66aa827
--- /dev/null
+++ b/tests/data_files/base64/def_b64_ff.bin
@@ -0,0 +1,5 @@
+// Ensure that the b64 parser continues after encountering a 0xFF
+// character. Note that this byte is invalid UTF-8, making this
+// entire file invalid UTF-8. Use care when editing.
+// -> ÿ <-
+AhUAAH8AAA4AAABtAAAAAF6HQx3MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACG2QbHbUj8eGpdx5KVIebiwk0jvRj9/3m6BOSzpA7qBXeEunhqr3D11NE7ciGjeHMAAACAAAAAAAAAAAAAAAAAAV6HQx248L77RH0Z973tSYNQ8zBsz861CZG5/T09TJz3XodDHe/iJ+cgXb5An3zTdnTBtw3EWAb68T+gCE33GN8AAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA==