Possible solution
Possible solution
Posted Oct 25, 2024 4:26 UTC (Fri) by Baughn (subscriber, #124425)In reply to: Possible solution by a3f
Parent article: realloc() and the oversize importance of zero-size objects
Posted Oct 25, 2024 6:01 UTC (Fri)
by NYKevin (subscriber, #129325)
[Link] (1 responses)
Note however that this assumes the pointers were legitimately obtained in the first place. Pointer types may have trap representations, so you cannot just cast some arbitrary pile of bytes into a pointer and expect everything to work correctly (even if you never dereference it).
Posted Oct 28, 2024 2:45 UTC (Mon)
by ianmcc (subscriber, #88379)
[Link]
Possible solution
Possible solution