Skip to content

MDEV-36344: UBSAN DsMrr_impl::dsmrr_init on null ptr#5016

Open
grooverdan wants to merge 1 commit intoMariaDB:10.11from
grooverdan:MDEV-36344
Open

MDEV-36344: UBSAN DsMrr_impl::dsmrr_init on null ptr#5016
grooverdan wants to merge 1 commit intoMariaDB:10.11from
grooverdan:MDEV-36344

Conversation

@grooverdan
Copy link
Copy Markdown
Member

Under SQL_SELECT::test_quick_select there isn't a mrr buffer. The TRP_RANGE.mrr_buf_size is explictly sets its size to 0 in get_best_index_intersect.

Rather than hit undefined behaviour in what eventually results in full_buf being nullptr, jump the case and go directly to use_default_impl.

Under SQL_SELECT::test_quick_select there isn't
a mrr buffer. The TRP_RANGE.mrr_buf_size is explictly
sets its size to 0 in get_best_index_intersect.

Rather than hit undefined behaviour in what
eventually results in full_buf being nullptr,
jump the case and go directly to use_default_impl.
@grooverdan grooverdan added the MariaDB Foundation Pull requests created by MariaDB Foundation label Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Foundation Pull requests created by MariaDB Foundation

Development

Successfully merging this pull request may close these issues.

1 participant