Skip to content

Commit 4383c70

Browse files
committed
MDEV-23960 UBSAN ../storage/innobase/buf/buf0buddy.cc:350:6: runtime error: index 4096 out of bounds for type 'byte [38]'
Reviewed by: Marko Mäkelä
1 parent e98a5e1 commit 4383c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/buf/buf0buddy.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ buf_buddy_alloc_zip(
346346
if (buf) {
347347
buf_buddy_free_t* buddy =
348348
reinterpret_cast<buf_buddy_free_t*>(
349-
buf->stamp.bytes
349+
reinterpret_cast<byte*>(buf)
350350
+ (BUF_BUDDY_LOW << i));
351351

352352
ut_ad(!buf_pool_contains_zip(buf_pool, buddy));

0 commit comments

Comments
 (0)