-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Argument of wrong type is passed to fcntl() #67010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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. |
Here is a patch. It is much easier than I expected. |
Fixed in 3.5 as part of 6e6532d313a1 as it was easier to integrate it as part of the Clinic patch. |
New changeset 61e99438c237 by Serhiy Storchaka in branch '2.7': New changeset 45e8aed69767 by Serhiy Storchaka in branch '3.4': New changeset 2d203a0b7908 by Serhiy Storchaka in branch 'default': |
6e6532d313a1 has introduced other bug ("l" was parsed to int). Changed to "I" |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: