3 ms·
It is not UB if it is correctly aligned. It is UB if the underlying dynamic type is not compatible from the access type As the bytes are coming from the kerne
by gpderetta 5y ago
It is not UB if it is correctly aligned.
It is UB if the underlying dynamic type is not compatible from the access type
As the bytes are coming from the kernel, you get to decide the dynamic type.