[Python-bugs-list] [ python-Bugs-762855 ] ioctl only accepts 1024 byte arguments
SourceForge.net
noreply@sourceforge.net
Sun, 29 Jun 2003 13:29:56 -0700
Bugs item #762855, was opened at 2003-06-29 22:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=762855&group_id=5470
Category: Python Library
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Robert Penz (robertpenz)
Assigned to: Nobody/Anonymous (nobody)
Summary: ioctl only accepts 1024 byte arguments
Initial Comment:
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;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=762855&group_id=5470