here we allocate a fresh region with a user provided size value:
|
struct regional* r = (struct regional*)malloc(size); |
this size value gets aligned to the neccessary alignment requirements. but this happens after the malloc. thus size
can now be larger than what was actually allocated:
|
size = ALIGN_UP(size, ALIGNMENT); |
here we allocate a fresh region with a user provided
sizevalue:unbound/util/regional.c
Line 86 in 52b0480
this
sizevalue gets aligned to the neccessary alignment requirements. but this happens after the malloc. thussizecan now be larger than what was actually allocated:
unbound/util/regional.c
Line 87 in 52b0480
unbound/util/regional.c
Line 90 in 52b0480