Issue 762855: ioctl only accepts 1024 byte arguments (original) (raw)

Issue762855

Created on 2003-06-29 20:29 by robertpenz, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Messages (2)
msg16661 - (view) Author: Robert Penz (robertpenz) Date: 2003-06-29 20:29
Hi! The buffer in /python/dist/src/Modules/fcntlmodule.c ist hardcoded to 1024 byte. It would be cool if would be dynamic allocated or at least make it 10k big. my argnument has an size of 1816 byte char buf[1024]; ..... if (len > sizeof buf) { PyErr_SetString(PyExc_ValueError, "ioctl string arg too long"); return NULL;
msg16662 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2003-07-21 13:20
Logged In: YES user_id=6656 Python 2.3 already does something like this. You have to pass in an array.array (or other writable buffer).
History
Date User Action Args
2022-04-10 16:09:29 admin set github: 38733
2003-06-29 20:29:56 robertpenz create