News for hackers. Stuff that matters.
Re:The Lost Art of Structure Packing (2018) by RealityVoid on Monday April 27, 2020 @05:27PM (#23000269)
Ok, this will sound stupid then, but is pointer aliasing using casts undefined?
Re:The Lost Art of Structure Packing (2018) by saagarjha on Monday April 27, 2020 @09:29PM (#23002327)
Not stupid–pointer aliasing using a cast is undefined if the types do not match, unless the type you are converting to is a void * , char * , or unsigned char *.