[New-bugs-announce] [issue9611] FileIO not 64-bit safe under Windows

Antoine Pitrou report at bugs.python.org
Sun Aug 15 19:25:42 CEST 2010

New submission from Antoine Pitrou <pitrou at free.fr>:

Modules/_io/fileio.c assumes that read() and write() allow a Py_ssize_t length, but under Windows the length is an int, limiting chunk size to 2GB.

It should be easy enough to read or write in multiple chunks, although testing might be difficult.

components: Extension Modules, Windows
messages: 113974
nosy: pitrou
priority: normal
severity: normal
status: open
title: FileIO not 64-bit safe under Windows
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list