[Python-checkins] [python/cpython] a86339: Fixed bpo-29565: Corrected ctypes passing of large...
GitHub
noreply at github.com
Sun Feb 19 19:16:34 EST 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: a86339b83fbd0932e0529a3c91935e997a234582
https://github.com/python/cpython/commit/a86339b83fbd0932e0529a3c91935e997a234582
Author: Vinay Sajip <vinay_sajip at yahoo.co.uk>
Date: 2017年02月20日 (2017年2月20日)
Changed paths:
M Lib/ctypes/test/test_callbacks.py
M Lib/ctypes/test/test_structures.py
M Modules/_ctypes/_ctypes_test.c
M Modules/_ctypes/libffi_msvc/ffi.c
Log Message:
-----------
Fixed bpo-29565: Corrected ctypes passing of large structs by value on 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.
More information about the Python-checkins
mailing list