Y
Hacker News
new
|
ask
|
show
|
jobs
by
loeg
1001 days ago
The straightforward answer is: don't tolerate ridiculous alignments.
1 comments
saagarjha
1001 days ago
You'd need to check for that, though.
link
loeg
1001 days ago
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.
link