From 3fdd84ad82afe71c9fa4852316f8ed6fcc6fa944 Mon Sep 17 00:00:00 2001 From: liang_feiteng Date: Tue, 30 Jun 2020 15:16:41 +0800 Subject: [PATCH] fix char overflow bug#22124719 --- mysql-5.7.27/strings/ctype-utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-5.7.27/strings/ctype-utf8.c b/mysql-5.7.27/strings/ctype-utf8.c index 7dec9609..c7c92885 100644 --- a/mysql-5.7.27/strings/ctype-utf8.c +++ b/mysql-5.7.27/strings/ctype-utf8.c @@ -7475,7 +7475,7 @@ static const uint16 uni_FF20_FF5F[64]= static int hexlo(int x) { - static char hex_lo_digit[256]= + static signed char hex_lo_digit[256]= { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */ -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */ -- Gitee