diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-07 13:53:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 13:53:15 (GMT) |
commit | 4cce1352bb47babaeefb68fcfcc48ffa073745c3 (patch) | |
tree | 0b920e214dc1ddbb8d796de50cf93ba99ae3bc3f /Python/ceval.c | |
parent | 8e98175a03fe03d62822d96007a74e5273013764 (diff) | |
download | cpython-4cce1352bb47babaeefb68fcfcc48ffa073745c3.zip cpython-4cce1352bb47babaeefb68fcfcc48ffa073745c3.tar.gz cpython-4cce1352bb47babaeefb68fcfcc48ffa073745c3.tar.bz2 |
bpo-46323: _ctypes.CFuncPtr fails if _argtypes_ is too long (GH-31188)
ctypes.CFUNCTYPE() and ctypes.WINFUNCTYPE() now fail to create the
type if its "_argtypes_" member contains too many arguments.
Previously, the error was only raised when calling a function.
Change also how CFUNCTYPE() and WINFUNCTYPE() handle KeyError to
prevent creating a chain of exceptions if ctypes.CFuncPtr raises an
error.
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions