Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Aug 2, 2018

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).

(cherry picked from commit a86339b)

https://bugs.python.org/issue29565

…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)
@bedevere-bot bedevere-bot added the type-bug An unexpected behavior, bug, or error label Aug 2, 2018
@vstinner vstinner requested a review from vsajip August 2, 2018 14:04
@vstinner vstinner merged commit 3243f8c into python:2.7 Aug 2, 2018
@vstinner vstinner deleted the ctypes_arm64 branch August 2, 2018 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants