[issue30665] pass big values for arg to fcntl.ioctl

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 2286 uses for the third argument char* on Linux and int or unsigned int on other platforms. It keeps some degree of integer overflow control. -- nosy: +mark.dickinson, twouters stage: -> patch review versions: +Python 2.7, Python 3.6, Python 3.7

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2334 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-19 Thread Uwe Kleine-König
Uwe Kleine-König added the comment: So the only option to fix this is to determine the type of arg from the request parameter? I failed to find the implementation of ioctl for linux in glibc, the best I found is one that only seems to be used on powerpc[1] which seems to assume that the third

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The FreeBSD [1], OpenBSD [2], and Solaris 10 [3] documentations specify the third argument of ioctl() as either an int or a pointer. Passing a 64-bit long instead of a 32-bit int on big-endian platform can cause incorrect interpretation of an argument. [1]

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-17 Thread Chris Fiege
Changes by Chris Fiege : -- nosy: +cfi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-14 Thread Uwe Kleine-König
New submission from Uwe Kleine-König: When passing a big integer value to fcntl.ioctl this might result in OverflowError: signed integer is greater than maximum . Traditionally ioctl(3) takes a pointer as third argument. The fcntl module however uses an int (format specifier 'i') which is