News for hackers. Stuff that matters.
Re:Always Bump Downwards (2019) by loeg on Tuesday September 19, 2023 @02:34PM (#37574168)
The straightforward answer is: don't tolerate ridiculous alignments.
Re:Always Bump Downwards (2019) by saagarjha on Tuesday September 19, 2023 @08:39PM (#37579042)
You'd need to check for that, though.
Re:Always Bump Downwards (2019) by loeg on Tuesday September 19, 2023 @11:16PM (#37580029)
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.