diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-01-06 09:46:06 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-01-06 09:46:06 +0000 |
commit | 298144ff798cbe0e00cd6a8750d2dbd092143e77 (patch) | |
tree | d2d379f14702a671513f4c279d9e086e0eb94577 /regress/lib/libcrypto/x509 | |
parent | abd689428d9d99d6147652b8f2070877be3e5dec (diff) |
Fix a copy-paste error that led to an out-of-bounds access.
Found via a crash on bluhm's i386 regress test box
Diffstat (limited to 'regress/lib/libcrypto/x509')
-rw-r--r-- | regress/lib/libcrypto/x509/rfc3779/rfc3779.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libcrypto/x509/rfc3779/rfc3779.c b/regress/lib/libcrypto/x509/rfc3779/rfc3779.c index 99040af2b6d..e6636bb06f8 100644 --- a/regress/lib/libcrypto/x509/rfc3779/rfc3779.c +++ b/regress/lib/libcrypto/x509/rfc3779/rfc3779.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfc3779.c,v 1.3 2022/01/05 07:50:40 tb Exp $ */ +/* $OpenBSD: rfc3779.c,v 1.4 2022/01/06 09:46:05 tb Exp $ */ /* * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> * @@ -1724,7 +1724,7 @@ const struct ASIdentifiers_subset_test ASIdentifiers_subset_data[] = { }; const size_t N_ASIDENTIFIERS_SUBSET_TESTS = - sizeof(ASIdentifiers_build_data) / sizeof(ASIdentifiers_build_data[0]); + sizeof(ASIdentifiers_subset_data) / sizeof(ASIdentifiers_subset_data[0]); static int asid_subset_test(const struct ASIdentifiers_subset_test *test) |