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.

classification
Title: ioctl only accepts 1024 byte arguments
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: mwh Nosy List: mwh, robertpenz
Priority: normal Keywords:

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:29adminsetgithub: 38733
2003-06-29 20:29:56robertpenzcreate