diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-02-28 12:13:07 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-02-28 12:13:07 (GMT) |
commit | b0e10c760c8b7907aee3253054f5ac65fe1b1d12 (patch) | |
tree | a9b6629c7ad72d3451ef577508d08be69c3515cc /Modules | |
parent | f2dc885780278246d1a4572c822c4387142a84df (diff) | |
download | cpython-b0e10c760c8b7907aee3253054f5ac65fe1b1d12.zip cpython-b0e10c760c8b7907aee3253054f5ac65fe1b1d12.tar.gz cpython-b0e10c760c8b7907aee3253054f5ac65fe1b1d12.tar.bz2 |
Issue #1733986: Fixed mmap crash in accessing elements of second map object
with same tagname but larger size than first map. (Windows)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mmapmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 8407c11..ca5fa88 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1373,7 +1373,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict) dwDesiredAccess, off_hi, off_lo, - 0); + m_obj->size); if (m_obj->data != NULL) return (PyObject *)m_obj; else |