Skip to content

Commit 32327e5

Browse files
committed
MDEV-39540 crash due to narrowing cast in update_ref_and_keys()
1 parent d050128 commit 32327e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sql/sql_select.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7328,7 +7328,7 @@ update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
73287328
{
73297329
uint and_level,i;
73307330
KEY_FIELD *key_fields, *end, *field;
7331-
uint sz;
7331+
size_t sz;
73327332
uint m= MY_MAX(select_lex->max_equal_elems,1);
73337333
DBUG_ENTER("update_ref_and_keys");
73347334
DBUG_PRINT("enter", ("normal_tables: %llx", normal_tables));

0 commit comments

Comments
 (0)