Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
merged 3 commits into from
Feb 22, 2017
Merged

Conversation

vsajip
Copy link
Member

@vsajip vsajip commented Feb 21, 2017

…n Windows AMD64. (#168)

Fixed bpo-29565: Corrected ctypes passing of large structs by value.

(cherry picked from commit a86339b)

…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
Copy link

codecov bot commented Feb 21, 2017

Codecov Report

❗ No coverage uploaded for pull request base (3.6@9b49133). Click here to learn what that means.
The diff coverage is 100%.

@@          Coverage Diff           @@
##             3.6     #220   +/-   ##
======================================
  Coverage       ?   82.39%           
======================================
  Files          ?     1430           
  Lines          ?   351272           
  Branches       ?        0           
======================================
  Hits           ?   289436           
  Misses         ?    61836           
  Partials       ?        0
Impacted Files Coverage Δ
Lib/ctypes/test/test_structures.py 97.33% <100%> (ø)
Lib/ctypes/test/test_callbacks.py 94.59% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b49133...4090ab0. Read the comment docs.

@vsajip vsajip merged commit 3cc5817 into python:3.6 Feb 22, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants