|
|||||||||||
|
bk commit into 4.1 tree (ramil:1.2685) BUG#31069
From: <ramil(at)mysql.com>
Date: Wed Oct 03 2007 - 02:42:46 EDT
ChangeSet@1.2685, 2007-10-03 11:42:44+05:00, ramil@mysql.com +11 -0 Fix for bug #31069: crash in 'sounds like' and for bug #31070: crash during conversion of charsets Problem: passing a 0 byte length string to some my_mb_wc_XXX() functions leads to server crash due to improper argument check. Fix: properly check arguments passed to my_mb_wc_XXX() functions. mysql-test/include/ctype_common.inc@1.3, 2007-10-03 11:42:43+05:00, ramil@mysql.com +8 -0 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
mysql-test/r/ctype_big5.result@1.12, 2007-10-03 11:42:43+05:00, ramil@mysql.com +7 -0 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
mysql-test/r/ctype_euckr.result@1.3, 2007-10-03 11:42:43+05:00, ramil@mysql.com +7 -0 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
mysql-test/r/ctype_gb2312.result@1.3, 2007-10-03 11:42:43+05:00, ramil@mysql.com +7 -0 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
mysql-test/r/ctype_gbk.result@1.4, 2007-10-03 11:42:43+05:00, ramil@mysql.com +7 -0 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
mysql-test/r/ctype_uca.result@1.15, 2007-10-03 11:42:43+05:00, ramil@mysql.com +7 -0 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
strings/ctype-big5.c@1.81, 2007-10-03 11:42:43+05:00, ramil@mysql.com +2 -2 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
strings/ctype-cp932.c@1.9, 2007-10-03 11:42:43+05:00, ramil@mysql.com +2 -2 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
strings/ctype-euc_kr.c@1.63, 2007-10-03 11:42:43+05:00, ramil@mysql.com +2 -2 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
strings/ctype-gb2312.c@1.60, 2007-10-03 11:42:43+05:00, ramil@mysql.com +1 -3 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
strings/ctype-sjis.c@1.83, 2007-10-03 11:42:43+05:00, ramil@mysql.com +2 -2 Fix for bug #31069: crash in 'sounds like' and bug #31070: crash during conversion of charsets
diff -Nrup a/mysql-test/include/ctype_common.inc b/mysql-test/include/ctype_common.inc --- a/mysql-test/include/ctype_common.inc 2004-12-10 17:58:07 +04:00@@ -51,6 +51,14 @@ SELECT c1 as want1result from t1 where SELECT c1 as want1result from t1 where c1 like 'location%'; DROP TABLE t1; +# --- a/mysql-test/r/ctype_big5.result 2005-12-12 21:36:21 +04:00@@ -52,6 +52,13 @@ SELECT c1 as want1result from t1 where want1result location DROP TABLE t1; +create table t1 (a set('a') not null); +insert into t1 values (),(); +select cast(a as char(1)) from t1; +cast(a as char(1)) + + +drop table t1; DROP DATABASE d1; USE test; SET character_set_server= @safe_character_set_server; diff -Nrup a/mysql-test/r/ctype_euckr.result b/mysql-test/r/ctype_euckr.result --- a/mysql-test/r/ctype_euckr.result 2006-05-12 21:26:40 +05:00@@ -52,6 +52,13 @@ SELECT c1 as want1result from t1 where want1result location DROP TABLE t1; +create table t1 (a set('a') not null); +insert into t1 values (),(); +select cast(a as char(1)) from t1; +cast(a as char(1)) + + +drop table t1; DROP DATABASE d1; USE test; SET character_set_server= @safe_character_set_server; diff -Nrup a/mysql-test/r/ctype_gb2312.result b/mysql-test/r/ctype_gb2312.result --- a/mysql-test/r/ctype_gb2312.result 2006-05-12 21:26:40 +05:00@@ -52,6 +52,13 @@ SELECT c1 as want1result from t1 where want1result location DROP TABLE t1; +create table t1 (a set('a') not null); +insert into t1 values (),(); +select cast(a as char(1)) from t1; +cast(a as char(1)) + + +drop table t1; DROP DATABASE d1; USE test; SET character_set_server= @safe_character_set_server; diff -Nrup a/mysql-test/r/ctype_gbk.result b/mysql-test/r/ctype_gbk.result --- a/mysql-test/r/ctype_gbk.result 2005-12-12 21:36:39 +04:00@@ -52,6 +52,13 @@ SELECT c1 as want1result from t1 where want1result location DROP TABLE t1; +create table t1 (a set('a') not null); +insert into t1 values (),(); +select cast(a as char(1)) from t1; +cast(a as char(1)) + + +drop table t1; DROP DATABASE d1; USE test; SET character_set_server= @safe_character_set_server; diff -Nrup a/mysql-test/r/ctype_uca.result b/mysql-test/r/ctype_uca.result --- a/mysql-test/r/ctype_uca.result 2005-09-21 22:17:28 +05:00@@ -2371,6 +2371,13 @@ SELECT c1 as want1result from t1 where want1result location DROP TABLE t1; +create table t1 (a set('a') not null); +insert into t1 values (),(); +select cast(a as char(1)) from t1; +cast(a as char(1)) + + +drop table t1; DROP DATABASE d1; USE test; SET character_set_server= @safe_character_set_server; diff -Nrup a/strings/ctype-big5.c b/strings/ctype-big5.c --- a/strings/ctype-big5.c 2005-12-12 21:38:37 +04:00{
if (s >= e)
if (s >= e)
if (s >= e)
if (s >= e)
-- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Wed Oct 3 02:43:00 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 09:50:42 EDT |
||||||||||
|
|||||||||||