Re:Stop Memsetting Structures
by mehrdadn on Saturday April 27, 2019 @11:03PM
(#19769056)
I don't think it is. It wouldn't make sense since memcpy is basically supposed to convert between arbitrary binary data.
[ Parent
| on HN ]
From a practical point of view, yes, but I would be very surprised if the C standard had any accommodation for memcpy being a way to leak the value of a structure's padding.
You clearly haven't understood the thread.