diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-04-25 16:27:16 +0500 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-04-25 16:27:16 +0500 |
commit | c1ae7593b822aef6d2a267e520d2d0d469287294 (patch) | |
tree | 71e243851d9169d10bf0b0fd70554c6af2f4e209 /strings | |
parent | 1a01f0ff08b2e22602605d59e009d19500f9fb75 (diff) | |
download | mariadb-git-c1ae7593b822aef6d2a267e520d2d0d469287294.tar.gz |
ctype-tis620.c:
Don't allow access outside the string
strings/ctype-tis620.c:
Don't allow access outside the string
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-tis620.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-tis620.c b/strings/ctype-tis620.c index d5181dc4db0..7628b425b65 100644 --- a/strings/ctype-tis620.c +++ b/strings/ctype-tis620.c @@ -492,7 +492,7 @@ static uchar* thai2sortable(const uchar * tstr,uint len) } pLeft4 = pRight4;*/ while(len--) { - if(isldvowel(*p) && isconsnt(p[1])) { + if(isldvowel(*p) && len > 0 && isconsnt(p[1])) { *pRight1++ = t_ctype[p[1]][0]; *pRight2++ = t_ctype[p[1]][1]; *pRight3++ = t_ctype[p[1]][2]; |