-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Fixed bpo-29565: Corrected ctypes passing of large structs by value o… #220
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
Conversation
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
…n Windows AMD64. (#168) * Fixed bpo-29565: Corrected ctypes passing of large structs by value. Added code and test to check that when a structure passed by value is large enough to need to be passed by reference, a copy of the original structure is passed. The callee updates the passed-in value, and the test verifies that the caller's copy is unchanged. A similar change was also added to the test added for bpo-20160 (that test was passing, but the changes should guard against regressions). * Reverted unintended whitespace changes. (cherry picked from commit a86339b)
Codecov Report
@@ Coverage Diff @@
## 3.6 #220 +/- ##
======================================
Coverage ? 82.39%
======================================
Files ? 1430
Lines ? 351272
Branches ? 0
======================================
Hits ? 289436
Misses ? 61836
Partials ? 0
Continue to review full report at Codecov.
|
zooba
approved these changes
Feb 21, 2017
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Aug 4, 2019
Add a test function to provoke switching errors, add test cases and fix the error handling.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Oct 25, 2019
Add a test function to provoke switching errors, add test cases and fix the error handling. (cherry picked from commit 8ae5fe5)
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
May 27, 2021
Add a test function to provoke switching errors, add test cases and fix the error handling. (cherry picked from commit 8ae5fe5)
ahgamut
pushed a commit
to ahgamut/cpython
that referenced
this pull request
Aug 25, 2021
Add a test function to provoke switching errors, add test cases and fix the error handling. (cherry picked from commit 8ae5fe5)
jaraco
pushed a commit
that referenced
this pull request
Dec 2, 2022
jaraco
added a commit
to jaraco/cpython
that referenced
this pull request
Feb 17, 2023
tests: add test for contents()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…n Windows AMD64. (#168)
Fixed bpo-29565: Corrected ctypes passing of large structs by value.
(cherry picked from commit a86339b)