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ä
This commit is contained in:
parent
e98a5e166c
commit
4383c705ab
@ -346,7 +346,7 @@ buf_buddy_alloc_zip(
|
|||||||
if (buf) {
|
if (buf) {
|
||||||
buf_buddy_free_t* buddy =
|
buf_buddy_free_t* buddy =
|
||||||
reinterpret_cast<buf_buddy_free_t*>(
|
reinterpret_cast<buf_buddy_free_t*>(
|
||||||
buf->stamp.bytes
|
reinterpret_cast<byte*>(buf)
|
||||||
+ (BUF_BUDDY_LOW << i));
|
+ (BUF_BUDDY_LOW << i));
|
||||||
|
|
||||||
ut_ad(!buf_pool_contains_zip(buf_pool, buddy));
|
ut_ad(!buf_pool_contains_zip(buf_pool, buddy));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user