Serhiy Storchaka
f8aa133cce
Issue #23338 : Fixed formatting ctypes error messages on Cygwin.
...
Patch by Makoto Kato.
2015-04-04 10:06:58 +03:00
Serhiy Storchaka
2e229e025c
Issue #23338 : Fixed formatting ctypes error messages on Cygwin.
...
Patch by Makoto Kato.
2015-04-04 10:05:48 +03:00
Steve Dower
ef42dae7fa
Issue #23765 : Remove IsBadStringPtr calls in ctypes
...
Also renames a local to avoid warnings about shadowing
2015-03-24 23:28:54 -07:00
Serhiy Storchaka
b48af340b9
Silenced minor GCC warnings.
2015-02-26 15:27:57 +02:00
Serhiy Storchaka
26861b0b29
Issue #23450 : Fixed possible integer overflows.
2015-02-16 20:52:17 +02:00
Serhiy Storchaka
4d0d982985
Issue #23446 : Use PyMem_New instead of PyMem_Malloc to avoid possible integer
...
overflows. Added few missed PyErr_NoMemory().
2015-02-16 13:33:32 +02:00
Serhiy Storchaka
1a1ff29659
Issue #23446 : Use PyMem_New instead of PyMem_Malloc to avoid possible integer
...
overflows. Added few missed PyErr_NoMemory().
2015-02-16 13:28:22 +02:00
Serhiy Storchaka
3dd3e26680
Issue #22896 : Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
...
and PyObject_AsWriteBuffer().
2015-02-03 01:25:42 +02:00
Serhiy Storchaka
4fdb68491e
Issue #22896 : Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
...
and PyObject_AsWriteBuffer().
2015-02-03 01:21:08 +02:00
Benjamin Peterson
610bc6a211
merge 3.4 ( #23221 )
2015-01-13 09:20:31 -05:00
Benjamin Peterson
82f34ada45
fix instances of consecutive articles ( closes #23221 )
...
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Steve Dower
2a8ef68028
Issue #22733 : MSVC ffi_prep_args doesn't handle 64-bit arguments properly
2014-12-17 06:31:44 -08:00
Benjamin Peterson
8726f2b89c
merge 3.4
2014-11-06 00:53:18 -05:00
Benjamin Peterson
abd1c97bd2
fix test where sizeof(long) != sizeof(int)
2014-11-06 00:52:58 -05:00
Steve Dower
5c2939cc41
Issue #20160 : broken ctypes calling convention on MSVC / 64-bit Windows (large structs) Patch by mattip
2014-11-05 19:30:30 -08:00
Steve Dower
b7fa201113
Issue #20160 : broken ctypes calling convention on MSVC / 64-bit Windows (large structs) Patch by mattip
2014-11-04 21:21:22 -08:00
R David Murray
9755174464
Merge: #13096 : Fix segfault in CTypes POINTER handling of large values.
2014-10-12 13:56:37 -04:00
R David Murray
817905b239
#13096 : Fix segfault in CTypes POINTER handling of large values.
...
Patch by Meador Inge.
2014-10-12 13:54:48 -04:00
Antoine Pitrou
94262ebc9c
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
...
Initial patch by Mark Shannon.
2014-10-08 20:02:40 +02:00
Antoine Pitrou
0ddbf4795f
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
...
Initial patch by Mark Shannon.
2014-10-08 20:00:09 +02:00
Victor Stinner
706768c687
Issue #22156 : Fix some "comparison between signed and unsigned integers"
...
compiler warnings in the Modules/ subdirectory.
2014-08-16 01:03:39 +02:00
doko@ubuntu.com
3b48af018f
- Issue #22176 : Fix build failure on ARM with -Werror=declaration-after-statement
2014-08-10 00:01:04 +02:00
doko@ubuntu.com
6a66f155df
- Issue #22176 : Add src/x86/win32.S for x86 libffi builds.
2014-08-09 23:52:34 +02:00
doko@ubuntu.com
736a913321
- Issue #22176 : Update the ctypes module's libffi to v3.1. This release
...
adds support for the Linux AArch64 and POWERPC ELF ABIv2 little endian
architectures.
2014-08-09 22:36:35 +02:00
Serhiy Storchaka
4f06d604c4
Issue #22161 : Conformed arguments type checks in ctype to actually supported
...
types. Corrected error messages about bytes arguments.
2014-08-09 09:33:05 +03:00
Benjamin Peterson
5eb6b39210
support pep 3118 format strings for ctypes objects with nontrivial shapes ( closes #10744 )
...
Patch by Matti Picus.
2014-05-17 14:59:12 -07:00
Benjamin Peterson
fca286601b
merge 3.3 ( #20946 )
2014-03-16 11:30:54 -05:00
Benjamin Peterson
fda33559dc
fix ctypes test alignment assumptions ( closes #20946 )
...
Patch by Andreas Schwab.
2014-03-16 10:07:26 +01:00
Serhiy Storchaka
dfe98a102e
Issue #20437 : Fixed 22 potential bugs when deleting objects references.
2014-02-09 13:46:20 +02:00
Serhiy Storchaka
505ff755d7
Issue #20437 : Fixed 21 potential bugs when deleting objects references.
2014-02-09 13:33:53 +02:00
Serhiy Storchaka
fe5fff6305
Issue #19936 : Restored executable bits for several libffi files.
...
These files have shebangs and executable bits in the libffi distribution.
2014-01-23 16:23:50 +02:00
Serhiy Storchaka
744135d7bb
Issue #19936 : Restored executable bits for several libffi files.
...
These files have shebangs and executable bits in the libffi distribution.
2014-01-23 16:22:55 +02:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang lines in the unittestgui and checkpip scripts.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
2014-01-16 17:15:49 +02:00
Christian Heimes
bd306db07c
silence unused-value warnings in libffi's dlmalloc.c
2013-12-04 09:43:21 +01:00
Victor Stinner
e106e5ce4b
Issue #19437 : Fix error handling of PyCArrayType_new(), don't decreases the
...
reference counter of stgdict after result stole a reference to it
2013-11-18 18:37:33 +01:00
Victor Stinner
2399ad51d4
Issue #19437 : Fix error handling of CDataType_from_buffer()
...
KeepRef() decreases the reference counter of its 'keep' parameter on error
2013-11-18 18:35:55 +01:00
Gregory P. Smith
61b976f127
Fix compilation error under gcc of the ctypes module bundled libffi for arm.
...
A variable was declared below the top of a block and one function was using
a K&R C style function declaration!
2013-11-17 21:57:43 +00:00
Gregory P. Smith
7929a1da1a
Fix compilation error under gcc of the ctypes module bundled libffi for arm.
...
A variable was declared below the top of a block and one function was using
a K&R C style function declaration!
2013-11-17 21:56:07 +00:00
Victor Stinner
3b5901143d
Fix compiler warning on Windows 64 bit: _init_pos_args() result type is
...
Py_ssize_t, not int
2013-11-16 00:17:22 +01:00
Victor Stinner
e223439c13
Issue #19437 : Fix ctypes, handle PyCData_GetContainer() and GetKeepedObjects()
...
failures
2013-11-13 13:29:37 +01:00
Victor Stinner
588544d186
Issue #19437 : Fix GetKeepedObjects() of ctypes, handle PyCData_GetContainer()
...
failure
2013-11-13 13:24:50 +01:00
Victor Stinner
7184366dab
Issue #19437 : Fix PyCData_GetContainer() of ctypes, handle PyDict_New() failure
2013-11-13 13:23:35 +01:00
Victor Stinner
bd303c165b
Issue #19512 , #19515 : remove shared identifiers, move identifiers where they
...
are used.
Move also _Py_IDENTIFIER() defintions to the top in modified files to remove
identifiers duplicated in the same file.
2013-11-07 23:07:29 +01:00
Victor Stinner
090543736f
Issue #19512 : add some common identifiers to only create common strings once,
...
instead of creating temporary Unicode string objects
Add also more identifiers in pythonrun.c to avoid temporary Unicode string
objets for the interactive interpreter.
2013-11-06 22:41:44 +01:00
Victor Stinner
e75996a77c
Issue #19437 : Fix PyCFuncPtrType constructor, handle
...
_ctypes_alloc_format_string() failure
2013-10-31 16:34:08 +01:00
Victor Stinner
a215002453
Issue #19437 : Fix PyCArrayType constructor, raise MemoryError on PyMem_Malloc()
...
failure
2013-10-31 16:33:05 +01:00
Victor Stinner
6decccdafe
Issue #19437 : Fix Array_subscript() of ctypes, handle Array_item() failure
2013-10-29 16:05:14 +01:00
Victor Stinner
dd371b92c4
Issue #18408 : Fix PyCStructUnionType_update_stgdict(), handle
...
_ctypes_alloc_format_string() failure
2013-10-29 03:50:45 +01:00
Victor Stinner
68f6adca6d
Issue #18408 : Fix _ctypes_alloc_format_string(), raise MemoryError on memory
...
allocation failure
2013-10-29 03:50:21 +01:00