[Bug 5156] fclose and fflush do not report write failures

bugzilla at busybox.net bugzilla at busybox.net
Sun Nov 22 15:46:57 UTC 2015


https://bugs.busybox.net/show_bug.cgi?id=5156

--- Comment #2 from stefanct <stefan.tauner at gmx.at> 2015-11-22 15:46:56 UTC ---
This (together with the fact that fwrite() reports to succeed in writing the
requested number of bytes) causes real world applications to fail to even
notice that there is a problem and produce corrupt user data.

My test case is writing a regular file to a full vfat file system on Linux.
MUSL and glibc report the problem already at fwrite() time while uclibc does
not report any problem in fwrite() nor fclose(). This is a disastrous bug.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list