From 1bdbdaffdc66be457a40f33640b523aaf21138c6 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 16 Nov 2018 11:44:30 +1000 Subject: Properties for implementation selection. Properties are a sequence of comma separated name=value pairs. A name without a corresponding value is assumed to be a Boolean and have the true value 'yes'. Values are either strings or numbers. Strings can be quoted either _"_ or _'_ or unquoted (with restrictions). There are no escape characters inside strings. Number are either decimal digits or '0x' followed by hexidecimal digits. Numbers are represented internally as signed sixty four bit values. Queries on properties are a sequence comma separated conditional tests. These take the form of name=value (equality test), name!=value (inequality test) or name (Boolean test for truth). Queries can be parsed, compared against a definition or merged pairwise. Reviewed-by: Matt Caswell Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/8224) --- crypto/sparse_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/sparse_array.c') diff --git a/crypto/sparse_array.c b/crypto/sparse_array.c index 796d35e349..5bcdbc5313 100644 --- a/crypto/sparse_array.c +++ b/crypto/sparse_array.c @@ -187,7 +187,7 @@ int OPENSSL_SA_set(OPENSSL_SA *sa, size_t posn, void *val) if (sa == NULL) return 0; - for (level = 1; level <= SA_BLOCK_MAX_LEVELS; level++) + for (level = 1; level < SA_BLOCK_MAX_LEVELS; level++) if ((n >>= OPENSSL_SA_BLOCK_BITS) == 0) break; -- cgit v1.2.3