News for hackers. Stuff that matters.
Re:The trouble with struct sockaddr's fake flexible array by acuozzo on Friday November 29, 2024 @11:33AM (#42274959)
It's not UB if the "common initial sequence" exemption applies as it does here.
Re:The trouble with struct sockaddr's fake flexible array by LegionMammal978 on Friday November 29, 2024 @04:28PM (#42277263)
The "common initial sequence" in the standard doesn't apply to pointer casts. It only applies to writing to one union member and reading from another union member.
Re:The trouble with struct sockaddr's fake flexible array by acuozzo on Friday November 29, 2024 @05:54PM (#42277854)
I stand corrected. Thank you.