Closed LXYan2333 closed 1 month ago
I just learned that this is something resemble to "flexible array" https://en.wikipedia.org/wiki/Flexible_array_member, but according to https://stackoverflow.com/a/46251908 specify the length of blocks_inuse
array is actually an UB.
Dear maintainer:
Hello, I suggest to add a comment right after
https://github.com/microsoft/mimalloc/blob/81a771161e37c8559c442fff099115cd1977db1e/src/arena.c#L59
Array out of bounds is not a well-defined behaviour and should be documented explicitly, or people (like me) may waste some time on it……
Thanks for this awesome project anyway.