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
commitac446f804f10dfa09dd8c5e483ded6d2ac7cdeb7 (patch)
tree65b2ab0fb8a04dc2a61f3bcb20de1562d09812d8 /src/regress/lib/libcrypto/x509/constraints.c
parent0a7afeae06c69c09fad3e24ba5446736b204958d (diff)
downloadopenbsd-ac446f804f10dfa09dd8c5e483ded6d2ac7cdeb7.tar.gz
openbsd-ac446f804f10dfa09dd8c5e483ded6d2ac7cdeb7.tar.bz2
openbsd-ac446f804f10dfa09dd8c5e483ded6d2ac7cdeb7.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