Optimizations and undefined behavior
Posted Jul 22, 2009 1:28 UTC (Wed) by
BrucePerens (guest, #2510)
In reply to:
Optimizations and undefined behavior by mjg59
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.
(
Log in to post comments)