[issue16743] mmap on Windows can mishandle files larger than sys.maxsize

Richard Oudkerk report at bugs.python.org
Mon Jan 28 01:33:05 CET 2013


Richard Oudkerk added the comment:

On 27/01/2013 9:06pm, Serhiy Storchaka wrote:
> Every bugfix breaks some code. As a compromise I propose set
 > m_obj->size = PY_SSIZE_T_MAX in case of overflow and emit a warning.

Trying to allocate PY_SSIZE_T_MAX bytes always seems to fail with

     WindowsError: [Error 8] Not enough storage is available to process
     this command

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16743>
_______________________________________


More information about the Python-bugs-list mailing list