mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
ctype-tis620.c:
Don't allow access outside the string
This commit is contained in:
parent
80a3c64d93
commit
4c3f1baca9
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue