3 ms·
> You say that as if it’s entirely the responsibility of the programmer to avoid these bear traps that have been left lying around everywhere. Oh no no no, I w
by loup-vaillant 8y ago
> You say that as if it’s entirely the responsibility of the programmer to avoid these bear traps that have been left lying around everywhere.
Oh no no no, I was picking on hermitdev's characterisation of the behaviour. Sure, what the compiler does with the padding bytes is unspecified. But it can still lead to undefined behaviour, if some unwary user ever reads them. A misinterpretation like that, and poof you get a security vulnerability. The C standard is insane.
- iainmerrick 8y agoAha, sorry, I misunderstood! Glad to hear you’re on the side of sanity. :)