Comment on Always Bump Downwards (2019)parentComments−loeg2yThe straightforward answer is: don't tolerate ridiculous alignments.−saagarjha2yYou'd need to check for that, though.−loeg2yNo, just restrict the domain of the alignment input to like, u8. Maybe u16. Either way, it is easy to ensure your bump allocation space is far enough away from SIZE_MAX.
Comments
The straightforward answer is: don't tolerate ridiculous alignments.
You'd need to check for that, though.
No, just restrict the domain of the alignment input to like, u8. Maybe u16. Either way, it is easy to ensure your bump allocation space is far enough away from SIZE_MAX.