Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-69214: Fix fcntl.ioctl() request type#119498
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Use an 'unsigned long' instead of an 'unsigned int' for the requestparameter of fcntl.ioctl() to support requests larger than UINT_MAX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM.
It could be better, because in POSIX its type isint
, and on Linux we can make it stricter withbitwise=False
, but this is good enough.
92fab33
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Use an 'unsigned long' instead of an 'unsigned int' for the requestparameter of fcntl.ioctl() to support requests larger than UINT_MAX.(cherry picked from commit92fab33)Co-authored-by: Victor Stinner <vstinner@python.org>
Sorry,@vstinner, I could not cleanly backport this to
|
GH-119504 is a backport of this pull request to the3.13 branch. |
GH-119505 is a backport of this pull request to the3.12 branch. |
Merged, thanks for the review. |
Use an 'unsigned long' instead of an 'unsigned int' for the requestparameter of fcntl.ioctl() to support requests larger than UINT_MAX.(cherry picked from commit92fab33)
…GH-119498) (python#119504)"This reverts commit0bab0b3.The change modified how negative values, like termios.TIOCSWINSZ, wastreated and is actually backward incompatible.
…#119498) (python#119505)"This reverts commit078da88.The change modified how negative values, like termios.TIOCSWINSZ, wastreated and is actually backward incompatible.
Use an 'unsigned long' instead of an 'unsigned int' for the requestparameter of fcntl.ioctl() to support requests larger than UINT_MAX.
Uh oh!
There was an error while loading.Please reload this page.
Use an 'unsigned long' instead of an 'unsigned int' for the request parameter of fcntl.ioctl() to support requests larger than UINT_MAX.