summaryrefslogtreecommitdiff
path: root/sql/ddl_log.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2021-11-19 18:06:48 +0300
committerAleksey Midenkov <midenok@gmail.com>2021-11-19 18:06:48 +0300
commit32e8e8479507db6736a1983dbde5f0fcb64f80db (patch)
tree38251c865fb48da11676a10d90fc1aadec5fa226 /sql/ddl_log.cc
parentd9a5c5db072e58cc21d462d107f9e018329011a4 (diff)
downloadmariadb-git-bb-10.7-midenok2.tar.gz
MDEV-27048 UBSAN: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'bb-10.7-midenok2
32-bit variable must be expanded to 64-bit before shift left.
Diffstat (limited to 'sql/ddl_log.cc')
-rw-r--r--sql/ddl_log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ddl_log.cc b/sql/ddl_log.cc
index 47b0077588f..418b5f3b5b0 100644
--- a/sql/ddl_log.cc
+++ b/sql/ddl_log.cc
@@ -2545,7 +2545,7 @@ bool ddl_log_write_execute_entry(uint first_entry,
file_entry_buf[DDL_LOG_ENTRY_TYPE_POS]= (uchar)DDL_LOG_EXECUTE_CODE;
int4store(file_entry_buf + DDL_LOG_NEXT_ENTRY_POS, first_entry);
- int8store(file_entry_buf + DDL_LOG_ID_POS, (cond_entry << DDL_LOG_RETRY_BITS));
+ int8store(file_entry_buf + DDL_LOG_ID_POS, ((ulonglong)cond_entry << DDL_LOG_RETRY_BITS));
if (!(*active_entry))
{