svn commit: r302252 - head/sys/kern

Ed Schouten ed at nuxi.nl
Mon Jul 4 19:28:41 UTC 2016


2016-07-04 21:08 GMT+02:00 Adrian Chadd <adrian.chadd at gmail.com>:
> Does the specification / implementation also mandate that the padding
> is zero'ed out or otherwise initialised?

Well... That's tricky:

https://stackoverflow.com/questions/13056364/is-zero-initialization-of-structures-guaranteed-to-wipe-padded-areas
https://gustedt.wordpress.com/2012/10/24/c11-defects-initialization-of-padding/

-- 
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717


More information about the svn-src-head mailing list