[issue22821] Argument of wrong type is passed to fcntl()

Serhiy Storchaka report at bugs.python.org
Sat Nov 8 15:54:38 CET 2014


New submission from Serhiy Storchaka:

Arguments of wrong type is passed to C function fcntl() in the fcntl module.

Third argument of fcntl() should be either pointer to binary structure or C int. But C long is passed instead. All works on platforms where sizeof(long) == sizeof(int) or on little-endian platforms, but on big-endian platform with sizeof(long) != sizeof(int) this will pass wrong value.

----------
components: Extension Modules
messages: 230861
nosy: brett.cannon, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Argument of wrong type is passed to fcntl()
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22821>
_______________________________________


More information about the Python-bugs-list mailing list