Bug #83618 SDI filenames are incorrect for table names containing multibyte characters

Submitted: 31 Oct 2016 9:18 Modified: 7 Nov 2016 15:24
Reporter: Dyre Tjeldvoll Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: DDL Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[31 Oct 2016 9:18] Dyre Tjeldvoll
Description:
Creating a table with a name containing multibyte characters results in an SDI file name where all characters after the first mb char has been omitted.

How to repeat:
let $MYSQLD_DATADIR = `select @@datadir`;
CREATE TABLE tæøå(i INT) ENGINE MYISAM;
--list_files $MYSQLD_DATADIR/test

Suggested fix:
Make sure that char values are cast to unsigned char before being passed to my_mbcharlen(CHARSET_INFO*, uint).
[7 Nov 2016 15:24] Paul DuBois
Posted by developer:
 
Fixed in 8.0.1.

No user-visible changes. No changelog entry needed.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.