diff options
author | bar@mysql.com <> | 2005-03-03 14:15:37 +0400 |
---|---|---|
committer | bar@mysql.com <> | 2005-03-03 14:15:37 +0400 |
commit | aaf4b11f11cd994560ab463868805690cdece886 (patch) | |
tree | aedc603b20deeb9ec92742ec5b1624aacbccd66f /strings | |
parent | 0683340ec9a3d9806e5510ef84e3501a36ae11cb (diff) | |
download | mariadb-git-aaf4b11f11cd994560ab463868805690cdece886.tar.gz |
Bug#8840 Empty string comparison and character set 'cp1250'
Secondary weight out of bounds was picked up in mistake when
the string is empty, instead of returning 0.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-win1250ch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-win1250ch.c b/strings/ctype-win1250ch.c index 98389a9a5a4..d843971b93f 100644 --- a/strings/ctype-win1250ch.c +++ b/strings/ctype-win1250ch.c @@ -416,7 +416,7 @@ static struct wordvalue doubles[] = { #define NEXT_CMP_VALUE(src, p, pass, value, len) \ while (1) { \ if (IS_END(p, src, len)) { \ - if (pass == 0) { p = src; pass++; } \ + if (pass == 0 && len > 0) { p= src; pass++; } \ else { value = 0; break; } \ } \ value = ((pass == 0) ? _sort_order_win1250ch1[*p] \ |