[MDEV-12696] Crash with LOAD XML and non-updatable VIEW column Created: 2017-05-05 Updated: 2017-05-09 Resolved: 2017-05-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.1, 10.2, 10.3 |
| Fix Version/s: | 10.2.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | load_data | ||
| Description |
|
I dump some data into an XML file:
Now I create table and a view with a non-updatable column:
And try to load data into it:
The server crashed, either immediately, or on the next query. The crash happens because read_xml_field casts item to Item_user_var_as_out_param without checking for proper Item type, in these two places:
|