News for hackers. Stuff that matters.
Re:Parameterized types in C using the new tag compatibility ... by windward on Friday June 27, 2025 @10:20AM (#44397015)
Pointer arithmetic that could overflow would probably involve a heap and therefore be less likely to require a relative, negative offset. Just use the addresses and errors you get from allocation.
Re:Parameterized types in C using the new tag compatibility ... by poly2it on Friday June 27, 2025 @12:39PM (#44398197)
Yes, but there are definitely cases where this doesn't apply, for example when deriving an offset from a user pointer. As such this is not a universal solution.