From: tb Date: Thu, 6 Jan 2022 09:46:05 +0000 (+0000) Subject: Fix a copy-paste error that led to an out-of-bounds access. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e84a01fbe534fdf3e8710e0e004f9ed93cb0bc8e;p=openbsd Fix a copy-paste error that led to an out-of-bounds access. Found via a crash on bluhm's i386 regress test box --- 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 * @@ -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)