Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.5
Description
Caught by UBSAN:
/home/buildbot/buildbot/build/mariadb-10.5.28/sql/sql_base.h:357:29: runtime error: shift exponent 64 is too large for 64-bit type 'long long unsigned int'
|
This happens inside setup_table_map() when tablenr==64 while table->map is a 64-bit integer, so there's an overflow.
Needs to figure out why there's no error generated when tablenr==MAX_TABLES and optionally add DBUG_ASSERT(tablenr < MAX_TABLES) to setup_table_map() to be able to catch such situations without running UBSAN.
Attachments
Issue Links
- is caused by
-
MDEV-29935 Server crashes in get_sort_by_table/make_join_statistics after INSERT into a view with ORDER BY
- Closed