Message276389
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:05 | christian.heimes | set | recipients:
+ christian.heimes, ncoghlan, vstinner, python-dev, martin.panter |
2016-09-14 07:41:05 | christian.heimes | set | messageid: <1473838865.7.0.913496881423.issue27778@psf.upfronthosting.co.za> |
2016-09-14 07:41:05 | christian.heimes | link | issue27778 messages |
2016-09-14 07:41:05 | christian.heimes | create | |
|