History log of /external/python/cpython2/Modules/_ctypes/stgdict.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6eec87810fcf75249cb1060424f69ef5859e3fb1 07-Sep-2016 Martin Panter <vadmium+py@gmail.com> Issue #27570: Avoid zero-length memcpy() calls with null source pointers
/external/python/cpython2/Modules/_ctypes/stgdict.c
f45c1755c32bac80059e463039f7f0a644593189 14-May-2016 Martin Panter <vadmium+py@gmail.com> Remove PEP 291 compatibility requirements for ctypes and modulefinder

https://mail.python.org/pipermail/python-dev/2016-May/144502.html
/external/python/cpython2/Modules/_ctypes/stgdict.c
a2269d074b02440b7a9c22115454ad7e33aeb3f4 16-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer
overflows. Added few missed PyErr_NoMemory().
/external/python/cpython2/Modules/_ctypes/stgdict.c
d3d23636cbb2fb305f672fa826c3da6a2dc72384 17-May-2014 Benjamin Peterson <benjamin@python.org> support pep 3118 format strings for ctypes objects with nontrivial shapes (closes #10744)

Patch from Matti Picus.
/external/python/cpython2/Modules/_ctypes/stgdict.c
74f49ab28b91d3c23524356230feb2724ee9b23f 18-Jan-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #15989: Fix several occurrences of integer overflow
when result of PyInt_AsLong() or PyLong_AsLong() narrowed
to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.
/external/python/cpython2/Modules/_ctypes/stgdict.c
ad349a190e923b32e7ef43ddafffde93df75051a 04-Oct-2011 Meador Inge <meadori@gmail.com> Issue #12881: ctypes: Fix segfault with large structure field names.
/external/python/cpython2/Modules/_ctypes/stgdict.c
cf316a171e562a7bb7490749818ddb3174a295b1 02-Sep-2011 Amaury Forgeot d'Arc <amauryfa@gmail.com> Issue #12764: Fix a crash in ctypes when the name of a Structure field is not
a string.
/external/python/cpython2/Modules/_ctypes/stgdict.c
c83ea137d7e717f764e2f31fc2544f522de7d857 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Untabify C files. Will watch buildbots.
/external/python/cpython2/Modules/_ctypes/stgdict.c
5c6af808f7721787dcce1bc6bfe14f225f9db6f3 24-Apr-2009 Thomas Heller <theller@ctypes.org> Issue #3102: All global symbols that the _ctypes extension defines are
now prefixed with 'Py' or '_ctypes'.
/external/python/cpython2/Modules/_ctypes/stgdict.c
18aa388ca084e1d40aa48c8c8f1b4f730c6fe059 24-Aug-2008 Neal Norwitz <nnorwitz@gmail.com> Fix:
* crashes on memory allocation failure found with failmalloc
* memory leaks found with valgrind
* compiler warnings in opt mode which would lead to invalid memory reads
* problem using wrong name in decimal module reported by pychecker

Update the valgrind suppressions file with new leaks that are small/one-time
leaks we don't care about (ie, they are too hard to fix).

TBR=barry
TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)
in opt mode:
valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \
-x test_logging test_ssl test_multiprocessing
valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
for i in `seq 1 4000` ; do
LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \
./python -c pass
done

At least some of these fixes should probably be backported to 2.5.
/external/python/cpython2/Modules/_ctypes/stgdict.c
2e75c450d23987d49afb2a093f71cd849c2b27b9 05-Jun-2008 Thomas Heller <theller@ctypes.org> Backport from py3k: Implement the new buffer interface from pep3118
for ctypes instances. Closes issue #2404.
/external/python/cpython2/Modules/_ctypes/stgdict.c
a06a1a88ee7c00a43e3bca2634c68aecd0170500 13-Feb-2008 Thomas Heller <theller@ctypes.org> Add pickle support to ctypes types.
/external/python/cpython2/Modules/_ctypes/stgdict.c
08ccf202e606a066668f4ef85df9a9c0d07e1ba1 14-Jan-2008 Amaury Forgeot d'Arc <amauryfa@gmail.com> As discussed in issue 1700288:
ctypes takes some liberties when creating python types: it modifies the types'
__dict__ directly, bypassing all the machinery of type objects which deal with
special methods. And this broke recent optimisations of method lookup.
Now we try to modify the type with more "official" functions.
/external/python/cpython2/Modules/_ctypes/stgdict.c
e93237dfcc4ee4feee62adafb4e7899487ca864b 19-Dec-2007 Christian Heimes <christian@cheimes.de> #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
/external/python/cpython2/Modules/_ctypes/stgdict.c
6819210b9e4e5719a6f7f9c1725f8fa70a8936f6 21-Jul-2007 Martin v. Löwis <martin@v.loewis.de> PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
/external/python/cpython2/Modules/_ctypes/stgdict.c
fe31d77dc0b70c18f1cffa98861da3a2f995241a 13-Jul-2007 Thomas Heller <theller@ctypes.org> PyType_stgdict() returns a borrowed reference which must not be
Py_DECREF'd.
/external/python/cpython2/Modules/_ctypes/stgdict.c
6088f24df28051a9ac62b7b9c43930de8f32a9d2 08-Jun-2007 Thomas Heller <theller@ctypes.org> Fix gcc warnings intruduced by passing Py_ssize_t to PyErr_Format calls.
/external/python/cpython2/Modules/_ctypes/stgdict.c
e81c9f6d5e22dbe4252ea578211710daea95347d 08-Jun-2007 Thomas Heller <theller@ctypes.org> [ 1715718 ] x64 clean compile patch for _ctypes, by Kristj?n Valur
with small modifications.
/external/python/cpython2/Modules/_ctypes/stgdict.c
5a901bd3cc396b17645d0d4012faf63db9e3ab42 30-Apr-2007 Thomas Heller <theller@ctypes.org> Make sure to call PyErr_NoMemory() in several places where
PyMem_Malloc() could potentially fail.

Will backport to the release25-maint branch.
/external/python/cpython2/Modules/_ctypes/stgdict.c
25d208bd464aa6b1bde8a30cc71327133edaeeb3 24-Nov-2006 Thomas Heller <theller@ctypes.org> Fix bug #1598620: A ctypes structure cannot contain itself.
/external/python/cpython2/Modules/_ctypes/stgdict.c
fdb62f0e5f0b7d1a70a9d8948768ff09ea420c41 07-Sep-2006 Thomas Heller <theller@ctypes.org> Anonymous structure fields that have a bit-width specified did not work,
and they gave a strange error message from PyArg_ParseTuple:
function takes exactly 2 arguments (3 given).

With tests.
/external/python/cpython2/Modules/_ctypes/stgdict.c
9b17eba8be14d258a9d4e747b35c3f7ef22f81ca 19-Aug-2006 Neal Norwitz <nnorwitz@gmail.com> Move assert to after NULL check, otherwise we deref NULL in the assert.

Klocwork #307
/external/python/cpython2/Modules/_ctypes/stgdict.c
d61d0733cbd6ee341cbc51cc42bc065654335e23 01-Aug-2006 Thomas Heller <theller@ctypes.org> Speed up PyType_stgdict and PyObject_stgdict.
/external/python/cpython2/Modules/_ctypes/stgdict.c
c2da9945852785c7da3c0becc7edd586b5ec628b 12-Jun-2006 Thomas Heller <theller@ctypes.org> Add pep-291 compatibility markers.
/external/python/cpython2/Modules/_ctypes/stgdict.c
9123edcc63bfbe3417d452922dda947a2fa179b8 10-Jun-2006 Thomas Heller <theller@ctypes.org> Don't use C++ comment.
/external/python/cpython2/Modules/_ctypes/stgdict.c
45f59ab3eee602613bf44b5410a7d5bb87bf6c3e 10-Jun-2006 Thomas Heller <theller@ctypes.org> Upgrade to ctypes version 0.9.9.7.

Summary of changes:

- support for 'variable sized' data
- support for anonymous structure/union fields
- fix severe bug with certain arrays or structures containing more than 256 fields
/external/python/cpython2/Modules/_ctypes/stgdict.c
058be9adbcaa7828be1f7575b5bda64158ab2c3c 18-Apr-2006 Skip Montanaro <skip@pobox.com> C++ compiler cleanup: the typical few casts, and ... C++ didn't like that
the StgDictObject's ffi_type member had the same name as its type. I
changed that to ffi_type_pointer. Feel free to change it to something else
more meaningful, just not ffi_type.
/external/python/cpython2/Modules/_ctypes/stgdict.c
d4c9320412177895f598a93d73a0e654db27c351 08-Mar-2006 Thomas Heller <theller@ctypes.org> Copy ctypes-0.9.9.4 sources from external into the trunk.
/external/python/cpython2/Modules/_ctypes/stgdict.c