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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22821>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to