diff options
author | Richard Levitte <levitte@openssl.org> | 2017-08-22 15:53:39 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-08-22 16:10:04 +0200 |
commit | 6ac589081b53a62bff5f0abe62c1c109c419c7a0 (patch) | |
tree | e598604716305d20a2987020bad8700bf2ad6faf /test | |
parent | Don't try to test ctype functions for values < 0 or > 255 (diff) | |
download | openssl-6ac589081b53a62bff5f0abe62c1c109c419c7a0.tar.xz openssl-6ac589081b53a62bff5f0abe62c1c109c419c7a0.zip |
Don't try to compare the ctype functions on values > 127
Our internal replacement functions return 0 for those values.
However, depending on locale, the C RTL functions may return 1.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4219)
Diffstat (limited to 'test')
-rw-r--r-- | test/ctype_internal_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ctype_internal_test.c b/test/ctype_internal_test.c index 15d01e76bb..6b66cfbaa0 100644 --- a/test/ctype_internal_test.c +++ b/test/ctype_internal_test.c @@ -70,7 +70,7 @@ static int test_ctype_tolower(int n) int setup_tests(void) { - ADD_ALL_TESTS(test_ctype_chars, 256); + ADD_ALL_TESTS(test_ctype_chars, 128); ADD_ALL_TESTS(test_ctype_toupper, OSSL_NELEM(case_change)); ADD_ALL_TESTS(test_ctype_tolower, OSSL_NELEM(case_change)); return 1; |