This nonsense with endless "undefined behavior" in modern compilers something I have no patience with. https://android.googlesource.com/platform/external/minijail/+/master/libminijailpreload.c#106 …
-
-
Yup. No compiler will exploit this case because a) POSIX requires it work b) there's actually nothing to be gained here.
-
The code linked uses a union, so there's no UB (per the DR/footnote mess). But the original POSIX recommendation had blatant-UB pointer cast-and-deref and compilers (rightly!) did not support it.
-
"what would .
@sortiecat do?" -
I just stuff my pointers in a void* and cast. Or better yet put it in a struct. I don't care for weird function pointer ABIs.
-
Typecast to long.
#lp64
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.