-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes #126938
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1962567
Fix rejection when non-bitfield fields are larger than 2^16 bytes
Melissa0x1f992 1900cf5
Merge pull request #1 from Melissa0x1f992/use-bitsize-param
Melissa0x1f992 2bd972b
📜🤖 Added by blurb_it.
blurb-it[bot] d2954cd
Update Modules/_ctypes/cfield.c
terryjreedy 0d21229
Remove specific dependency on Python 3.12 for black
Melissa0x1f992 d8a6f08
Add test case for large fields
Melissa0x1f992 16bfb44
Merge pull request #2 from Melissa0x1f992/use-bitsize-param
Melissa0x1f992 7402a8f
Reduce test field size to (2^31 - 1) to support 32 bit systems
Melissa0x1f992 8994ad0
Merge branch 'python:main' into main
Melissa0x1f992 db171e0
Reduce test field size to (2^31 - 1) to support 32 bit systems
Melissa0x1f992 7bc0ceb
Merge pull request #3 from Melissa0x1f992/use-bitsize-param
Melissa0x1f992 cd8c011
Merge in the main branch
encukou a3bd171
Remove pre-commit config (moved to #126971)
encukou 5e8aec0
Use PyLong_AsSsize_t to convert to Py_ssize_t
encukou 7d3bb10
Test maximum field size (sys.maxsize / 8, so we can count bits later)
encukou 946f261
Rework the asserts.
encukou 19c1b3b
Test naked c_char as well
encukou dcf97f2
Better name for the test
encukou 03bc32b
Add comment
encukou f61faa6
Reword changelog
encukou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.