]> granicus.if.org Git - python/commit
bpo-28129: fix ctypes crashes (#386) (#3799)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 28 Sep 2017 14:32:11 +0000 (07:32 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Sep 2017 14:32:11 +0000 (07:32 -0700)
commit7d6ddb96b34b94c1cbdf95baa94492c48426404e
treedfd55c6ab9a5d3e11c5d5fc9e9dae71501fa5870
parentec3d34c5b2feb10cb4d7606a10d81c178c3afce3
bpo-28129: fix ctypes crashes (#386) (#3799)

* init commit, with initial tests for from_param and fields __set__ and __get__, and some additions to from_buffer and from_buffer_copy

* added the rest of tests and patches. probably only a first draft.

* removed trailing spaces

* replace ctype with ctypes in error messages

* change back from ctypes instance to ctype instance

(cherry picked from commit 1bea762d9ec823544c530d567330a47f64d93d4f)
Lib/ctypes/test/test_frombuffer.py
Lib/ctypes/test/test_funcptr.py
Lib/ctypes/test/test_parameters.py
Lib/ctypes/test/test_pointers.py
Lib/ctypes/test/test_struct_fields.py
Modules/_ctypes/_ctypes.c
Modules/_ctypes/cfield.c