Bug #59699 | InnoDB - Hidden bug would cause a crash for unknown tablespace flags. | ||
---|---|---|---|
Submitted: | 24 Jan 2011 16:03 | Modified: | 11 Feb 2011 0:25 |
Reporter: | Kevin Lewis | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.5 | OS: | Any |
Assigned to: | Kevin Lewis | CPU Architecture: | Any |
[24 Jan 2011 16:03]
Kevin Lewis
[25 Jan 2011 20:30]
Marko Mäkelä
This bug was introduced in MySQL 5.5, when refactoring the access functions to data dictionary records. dict_load_table_low() in 5.5+ is based on dict_load_table() in earlier versions, but the return type was changed from dict_table_t* (returning a table handle, or NULL on error) to const char* (returning an error message string, or NULL on success). The patch looks correct. I reviewed all the refactored functions in dict0load.c and did not find other cases where they would return NULL on failure.
[4 Feb 2011 14:59]
Bugs System
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/130427 3303 kevin.lewis@oracle.com 2011-02-04 Bug#59699 - Hidden bug would cause a crash for unknown tablespace flags. The bug would cause a crash of InnoDB if a non-standard or unknown table flags existed in a SYS_TABLES record. This is important because the next file version, Cheetah, will identify itself by expanding this field. So unless this is fixed, an older engine that tries to open a table in a tablespace with a newer file version will crash instead of report an error and refuse to open the table, as it should do. Reviewed at RB://583. Approved by Marko.
[4 Feb 2011 16:28]
Kevin Lewis
Pushed to mysql-5.5-innodb and mysql-trunk-innodb
[8 Feb 2011 17:37]
Bugs System
Pushed into mysql-trunk 5.6.2 (revid:vasil.dimov@oracle.com-20110208173442-ocy58fdcuew3xvex) (version source revid:vasil.dimov@oracle.com-20110208173331-fu0j2s14jbg915zu) (merge vers: 5.6.2) (pib:24)
[8 Feb 2011 17:37]
Bugs System
Pushed into mysql-5.5 5.5.10 (revid:vasil.dimov@oracle.com-20110208173046-qsmzbrw1gppahx5o) (version source revid:vasil.dimov@oracle.com-20110208172800-tls70r2ot1i0dub7) (merge vers: 5.5.10) (pib:24)