[MDEV-29425] Buffer overflow in dict_index_t::col_info::add() Created: 2022-08-31 Updated: 2022-09-05 Resolved: 2022-09-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.6.9, 10.7.5, 10.8.4, 10.9.2, 10.10.1 |
| Fix Version/s: | 10.6.10, 10.7.6, 10.8.5, 10.9.3 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | ASAN, regression-10.6 | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The following change to a regression test will cause a crash:
The ha_innobase_inplace_ctx::cleanup_col_collation() is supposed to replace the column metadata for the second indexed column of the index c2c3. Instead, it is replacing the metadata for the first (unchanged) column c2 and would then run out of elements when replacing c3. When I attempted to retain the TEXT type for the column, the test would hang. I did not investigate the reason. |
| Comments |
| Comment by Marko Mäkelä [ 2022-08-31 ] | |||||||||||||||
|
thiru, do you think that the following would fix this? That is, we would only attempt to replace temporarily allocated column definitions?
I am wondering if we could eliminate the change_col_collate map altogether. | |||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-01 ] | |||||||||||||||
|
The anomaly with a TEXT column was filed as MDEV-29436. |