qt5base-lts/src
Giuseppe D'Angelo bc5a1c6d3f QFile: fix undefined behavior when closing a buffered file
C11 §7.21.3.4 [Files] says that

    The value of a pointer to a FILE object is indeterminate
    after the associated file is closed

POSIX.1-2013 reinforces by saying that

    After the call to fclose(), any use of stream results
    in undefined behavior.

This means we can't call fclose() again on a FILE *,
even if fclose() returned EOF and set errno to EINTR.

Change-Id: I282f4ff926e3c134729defa290c80d42431e97ce
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
2014-09-22 18:57:18 +02:00
..
3rdparty Apply upstream patch r1498 to our PCRE copy 2014-08-10 14:18:28 +02:00
android Android: Avoid deadlock in Qt.inputMethod.visible 2014-09-02 14:13:14 +02:00
angle fix bogus library paths in ANGLE prl files 2014-09-15 15:58:03 +02:00
concurrent Doc: Add docs for QtConcurrent::{Unhandled,Exception} 2014-03-17 20:52:42 +01:00
corelib QFile: fix undefined behavior when closing a buffered file 2014-09-22 18:57:18 +02:00
dbus Merge remote-tracking branch 'origin/stable' into 5.3 2014-06-25 10:22:20 +02:00
gui Prevent a Coverity warning about a dangerous code path 2014-09-22 18:57:12 +02:00
network Fix a mishandling of the fd returned by socket(2) 2014-09-22 14:08:57 +02:00
opengl OpenGL: destroy QGLContext allocated by QGLContext::fromOpenGLContext 2014-08-05 17:30:03 +02:00
openglextensions purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00
platformsupport Add missing private headers warning 2014-09-04 22:58:57 +02:00
plugins XCB: fix a possible array overflow leading to a crash 2014-09-22 18:56:33 +02:00
printsupport Check if Start/EndPage returns non-positive value when error checking 2014-08-07 10:07:41 +02:00
sql qsql ibase: fix memory corruption due to LONG being 4 bytes in firebird. 2014-09-10 08:28:11 +02:00
testlib Fix QT_NO_REGULAREXPRESSION build 2014-08-13 08:48:01 +02:00
tools Add missing private headers warning 2014-09-04 22:58:57 +02:00
widgets GTK syle: initialize all members of GdkColor 2014-09-22 18:56:22 +02:00
winmain fix paths in installed qtmain.prl 2014-08-04 18:35:41 +02:00
xml Doc: edited qtxml.qdocconf 2014-07-11 13:45:54 +02:00
src.pro purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00