Staging
v0.5.1
https://github.com/python/cpython
Revision b636dc67ed3c351d9631a7900ea05c3394a99518 authored by Guido van Rossum on 12 October 2000, 16:45:37 UTC, committed by Guido van Rossum on 12 October 2000, 16:45:37 UTC
http://sourceforge.net/bugs/?func=detailbug&bug_id=116636&group_id=5470
bobalex@rsv.ricoh.com

Bug report: If the file position is less than the end of the "file",
and a write is performed extending past then end of the file, the data
string is corrupted.

Solution: in write(), when writing past the end, properly set self.len
when newpos is > self.len.
1 parent 2e2a70a
History
Tip revision: b636dc67ed3c351d9631a7900ea05c3394a99518 authored by Guido van Rossum on 12 October 2000, 16:45:37 UTC
[ Bug #116636 ] Bug in StringIO.write()
Tip revision: b636dc6
File Mode Size
BeOS
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.cvsignore -rw-r--r-- 79 bytes
.hgtags -rw-r--r-- 1.7 KB
LICENSE -rw-r--r-- 8.0 KB
Makefile.in -rw-r--r-- 17.4 KB
README -rw-r--r-- 35.1 KB
acconfig.h -rw-r--r-- 5.4 KB
config.h.in -rw-r--r-- 16.0 KB
configure -rwxr-xr-x 167.6 KB
configure.in -rw-r--r-- 34.0 KB
install-sh -rwxr-xr-x 2.2 KB

README

back to top