[MDEV-15834] The code in TABLE_SHARE::init_from_binary_frm_image() is not safe Created: 2018-04-10 Updated: 2018-06-26 Resolved: 2018-06-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Virtual Columns |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3 |
| Fix Version/s: | 5.5.61, 10.0.36, 10.1.35, 10.2.16, 10.3.8, 10.4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The code in TABLE_SHARE::init_from_binary_frm_image() is not safe for broken FRM files. In debug mode it can crash on assert.
The same problem presents in the branch for MYSQL57_GENERATED_FIELD (since 10.2), it's reported as a separate issue |
| Comments |
| Comment by Alexander Barkov [ 2018-06-19 ] | ||||||||
|
To reproduce the problem, put the attached f1.frm into the MariaDB data directory and run:
It crashes with the following output:
|