Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[2.7] bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64. (#168)#8625

Merged
vstinner merged 1 commit intopython:2.7python/cpython:2.7from
vstinner:ctypes_arm64Copy head branch name to clipboard
Aug 2, 2018
Merged

[2.7] bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64. (#168)#8625
vstinner merged 1 commit intopython:2.7python/cpython:2.7from
vstinner:ctypes_arm64Copy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.