Skip to content
Permalink
Browse files
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ä
  • Loading branch information
kevgs committed Oct 14, 2020
1 parent e98a5e1 commit 4383c70
Showing 1 changed file with 1 addition and 1 deletion.
@@ -346,7 +346,7 @@ buf_buddy_alloc_zip(
if (buf) {
buf_buddy_free_t* buddy =
reinterpret_cast<buf_buddy_free_t*>(
buf->stamp.bytes
reinterpret_cast<byte*>(buf)
+ (BUF_BUDDY_LOW << i));

ut_ad(!buf_pool_contains_zip(buf_pool, buddy));

0 comments on commit 4383c70

Please sign in to comment.