summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2003-04-25 16:27:16 +0500
committerbar@bar.mysql.r18.ru <>2003-04-25 16:27:16 +0500
commit4c3f1baca99b437c071a2a2a43fd4ee1f36d2afe (patch)
tree71e243851d9169d10bf0b0fd70554c6af2f4e209 /strings
parent80a3c64d9322240cfb39fd39949a5442c354da8c (diff)
downloadmariadb-git-4c3f1baca99b437c071a2a2a43fd4ee1f36d2afe.tar.gz
ctype-tis620.c:
Don't allow access outside the string
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-tis620.c2
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];