summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/x509/constraints.c
diff options
context:
space:
mode:
authorbeck <>2020-09-20 18:22:31 +0000
committerbeck <>2020-09-20 18:22:31 +0000
commit407345d49b1ca886ab4bc7e429c61fb07a7eb964 (patch)
tree65b2ab0fb8a04dc2a61f3bcb20de1562d09812d8 /src/regress/lib/libcrypto/x509/constraints.c
parent4ba5f77ac44570b20d41962dedd0b44fbfb8588e (diff)
downloadopenbsd-407345d49b1ca886ab4bc7e429c61fb07a7eb964.tar.gz
openbsd-407345d49b1ca886ab4bc7e429c61fb07a7eb964.tar.bz2
openbsd-407345d49b1ca886ab4bc7e429c61fb07a7eb964.zip
Correct a 1 byte read overflow in x509_contraints_uri and add
regress to catch it in the future. found by Guido Vranken's cryptofuzzer ok tb@
Diffstat (limited to 'src/regress/lib/libcrypto/x509/constraints.c')
-rw-r--r--src/regress/lib/libcrypto/x509/constraints.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/regress/lib/libcrypto/x509/constraints.c b/src/regress/lib/libcrypto/x509/constraints.c
index 86ed8faf14..6e76f08113 100644
--- a/src/regress/lib/libcrypto/x509/constraints.c
+++ b/src/regress/lib/libcrypto/x509/constraints.c
@@ -152,6 +152,10 @@ unsigned char *invaliduri[] = {
152 "https://.www.openbsd.org/", 152 "https://.www.openbsd.org/",
153 "https://www.ope|nbsd.org%", 153 "https://www.ope|nbsd.org%",
154 "https://www.openbsd.org.#", 154 "https://www.openbsd.org.#",
155 "///",
156 "//",
157 "/",
158 "",
155 NULL, 159 NULL,
156}; 160};
157 161