This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, rmib
Date 2011-03-28.20:17:36
SpamBayes Score 0.000614558
Marked as misclassified No
Message-id <1301343456.99.0.140908340082.issue11697@psf.upfronthosting.co.za>
In-reply-to
Content
Did you see a compiler warning? Indeed, this function (mmap.move) decodes its arguments with:
   PyArg_ParseTuple(args, "kkk:move", &dest, &src, &cnt)
This looks wrong to me: these three numbers should be Py_ssize_t, and decoded with "nnn".

An example of wrong behavior (on win32):
>>> m = mmap.mmap(-1, 500)
>>> m.move(2**32, 10, 4)   # Should throw a ValueError
History
Date User Action Args
2011-03-28 20:17:37amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, rmib
2011-03-28 20:17:36amaury.forgeotdarcsetmessageid: <1301343456.99.0.140908340082.issue11697@psf.upfronthosting.co.za>
2011-03-28 20:17:36amaury.forgeotdarclinkissue11697 messages
2011-03-28 20:17:36amaury.forgeotdarccreate