You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Marking a zero-sized struct with CRepr adds a byte to it making its size no longer 0.
[CRepr]publicstructFoo{}sizeof(Foo);// 1
I encountered this bug when trying to use System.Net.Socket where SockAddr_in inherits from SockAddr and therefore is offset by a byte and it breaks bind.
Marking a zero-sized struct with CRepr adds a byte to it making its size no longer 0.
I encountered this bug when trying to use
System.Net.Socket
whereSockAddr_in
inherits fromSockAddr
and therefore is offset by a byte and it breaksbind
.Here's a repro to observe the bug in action.
The text was updated successfully, but these errors were encountered: