]> granicus.if.org Git - python/commit
bpo-28129: fix ctypes crashes (#386) (#3800)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 28 Sep 2017 14:31:40 +0000 (07:31 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Sep 2017 14:31:40 +0000 (07:31 -0700)
commit8b83687bdf66d2d10afb78e46bcede399deaefde
tree20a174eca5983e6e81781e7a425d768d0a8a40e3
parentb4920d562b74e909bfae71bf119350a01d1d5e5e
bpo-28129: fix ctypes crashes (#386) (#3800)

* 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