[issue26628] Undefined behavior calling C functions with ctypes.Union arguments
Vinay Sajip
report at bugs.python.org
Fri Dec 6 01:59:42 EST 2019
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
This is now fixed as a result of fixing bpo-16575. The unioncrash.py script now gives an error message:
$ python3.9 ~/tmp/unioncrash.py
Traceback (most recent call last):
File "/home/vinay/tmp/unioncrash.py", line 10, in <module>
sin.argtypes = [MyUnion]
TypeError: item 1 in _argtypes_ passes a union by value, which is unsupported.
----------
resolution: -> fixed
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26628>
_______________________________________
More information about the Python-bugs-list
mailing list