提交 6ac58908 编写于 作者: R Richard Levitte

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: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4219)
上级 196f5c4b
...@@ -70,7 +70,7 @@ static int test_ctype_tolower(int n) ...@@ -70,7 +70,7 @@ static int test_ctype_tolower(int n)
int setup_tests(void) 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_toupper, OSSL_NELEM(case_change));
ADD_ALL_TESTS(test_ctype_tolower, OSSL_NELEM(case_change)); ADD_ALL_TESTS(test_ctype_tolower, OSSL_NELEM(case_change));
return 1; return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册