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.
[ Parent
| on HN ]
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.