]> granicus.if.org Git - python/commit
Issue #5677: Explicitly forbid write operations on read-only file objects,
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 5 Feb 2010 17:05:54 +0000 (17:05 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 5 Feb 2010 17:05:54 +0000 (17:05 +0000)
commitbb445a1f22835b97673f96da8f9edc75b69f5f2c
treef3d399d134896edc68edb46d5c761c385bbb20fe
parent007a618a38d0c4dac9182fed9b22f3caf55dd1ea
Issue #5677: Explicitly forbid write operations on read-only file objects,
and read operations on write-only file objects.  On Windows, the system C
library would return a bogus result; on Solaris, it was possible to crash
the interpreter.  Patch by Stefan Krah.
Include/fileobject.h
Lib/test/test_file2k.py
Lib/test/test_sys.py
Misc/ACKS
Misc/NEWS
Objects/fileobject.c