Bug #31070 | crash during conversion of charsets | ||
---|---|---|---|
Submitted: | 17 Sep 2007 22:10 | Modified: | 23 Oct 2007 0:07 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S2 (Serious) |
Version: | 5.0.50, 5.1.23BK | OS: | Any |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[17 Sep 2007 22:10]
Shane Bester
[18 Sep 2007 3:22]
MySQL Verification Team
--------------------------------- testcase1 --------------------------------- drop table if exists `t1`; create table `t1` (`col003` set('a') charset euckr collate euckr_bin not null)engine=myisam; insert into `t1` values (); select cast(col003 as char(1)) from t1;
[18 Sep 2007 3:51]
MySQL Verification Team
--------------------------------- testcase2 (slightly different stack) --------------------------------- drop table if exists `t1`; create table `t1` (`col001` set('a') charset big5 collate big5_chinese_ci not null )engine=myisam; insert into `t1` values (),(); select cast(col001 as char(1)) from t1;
[23 Sep 2007 6:18]
MySQL Verification Team
So far I've only seen the following funcions in the lower level of the stack traces: my_mb_wc_gb2312 my_mb_wc_euc_kr my_mb_wc_sjis my_mb_wc_big5 my_mb_wc_cp932
[3 Oct 2007 7:01]
Ramil Kalimullin
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/34801 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.
[3 Oct 2007 7:56]
Alexander Barkov
http://lists.mysql.com/commits/34801 is ok to push
[18 Oct 2007 21:35]
Bugs System
Pushed into 5.1.23-beta
[18 Oct 2007 21:37]
Bugs System
Pushed into 5.0.52
[18 Oct 2007 21:37]
Bugs System
Pushed into 4.1.24
[23 Oct 2007 0:07]
Paul DuBois
Noted in 4.1.24, 5.0.52, 5.1.23 changelogs. Internal conversion routines could fail for several multi-byte character sets (big5, cp932, euckr, gb2312, sjis) for empty strings or during evaluation of SOUNDS LIKE.