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 christian.heimes
Recipients christian.heimes, martin.panter, ncoghlan, python-dev, vstinner
Date 2016-09-14.07:41:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oh sorry, I looked in the wrong location and missed it.

* if (PyErr_CheckSignals() < 0) {return NULL;} does not free buffer with PyMem_Free(buffer);

* The function allocates memory once with PyMem_Malloc() and later a second time with PyBytes_FromStringAndSize(buffer, n). You can avoid the first allocation and a memcpy() with PyBytes_FromStringAndSize(NULL, n) and PyBytes_AS_STRING().

* The syscall can also raise EPERM as reported by a user on QNAP. IIRC a seccomp policy caused EPERM.
Date User Action Args
2016-09-14 07:41:05christian.heimessetrecipients: + christian.heimes, ncoghlan, vstinner, python-dev, martin.panter
2016-09-14 07:41:05christian.heimessetmessageid: <>
2016-09-14 07:41:05christian.heimeslinkissue27778 messages
2016-09-14 07:41:05christian.heimescreate