]> granicus.if.org Git - python/commit
bpo-28129: fix ctypes crashes (#386)
authororenmn <orenmn@users.noreply.github.com>
Thu, 2 Mar 2017 17:42:40 +0000 (19:42 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 2 Mar 2017 17:42:40 +0000 (18:42 +0100)
commit1bea762d9ec823544c530d567330a47f64d93d4f
treee147eaf429f75a16d3e952e035fd7432b076ab95
parent8ae264ce6dfcd6923d7bbde0e975389bea7d9881
bpo-28129: fix ctypes crashes (#386)

* 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
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