[issue6344] mmap.read() crashes when passed a negative argument
Hirokazu Yamamoto
report at bugs.python.org
Sat Jun 27 23:59:06 CEST 2009
Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp> added the comment:
Hmm, I cannot reproduce the crash. I created the patch experimentally,
but I'm not confident with this patch. Especially here
+ if (n < 0)
+ n = PY_SSIZE_T_MAX;
because I don't have so much memory.
----------
keywords: +patch
Added file: http://bugs.python.org/file14372/fix_mmap_read.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6344>
_______________________________________
More information about the Python-bugs-list
mailing list