Optimizations and undefined behavior
Posted Jul 22, 2009 1:28 UTC (Wed) by BrucePerens
In reply to: Optimizations and undefined behavior
Parent article: Fun with NULL pointers, part 1
Matt, you aren't seriously proposing that we provide some sort of user contract regarding the contents of uninitialized variables being reliable sources of entropy.
Regarding ext3, this problem came up because fsync() was implemented as a performance pig, at least in ext3, and rather than fix it we trained application developers that they'd be safe without it. Had fsync() been repaired when the mozilla problem came up, nobody would be arguing about it today.
to post comments)