Skip to content
Snippets Groups Projects
Commit 68c29688 authored by mechanik20051988's avatar mechanik20051988 Committed by Vladimir Davydov
Browse files

small: fix assertion during slab allocation

When `slab_get` is called from `region_alloc` or `ibuf_alloc` first
of all we try to calculate order of appropriate slab. But there is
no check that requested size with slab meta is <= UINT32_MAX, that
leads to assertion failer in `slab_order` function. There is no
need for this assertion we should return `cache->order_max + 1`
for this case.

Closes #6726
parent f0eb2ca3
No related branches found
No related tags found
No related merge requests found
Subproject commit 055458f1d45948f7d768e2499496926dcf78b26f
Subproject commit 770b7cf0f1133b3ff88900f6cbdd8d856e4c4409
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment