[Python-checkins] r68401 - in python/branches/py3k: Misc/NEWS Modules/_ctypes/callproc.c
thomas.heller
python-checkins at python.org
Thu Jan 8 10:34:21 CET 2009
Author: thomas.heller
Date: Thu Jan 8 10:34:20 2009
New Revision: 68401
Log:
Fixed a crash in ctypes, when HAVE_USABLE_WCHAR_T is false.
Fixes issue #4867.
Modified:
python/branches/py3k/Misc/NEWS
python/branches/py3k/Modules/_ctypes/callproc.c
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Thu Jan 8 10:34:20 2009
@@ -88,6 +88,9 @@
Library
-------
+- Issue #4867: Fixed a crash in ctypes when passing a string to a
+ function without defining argtypes.
+
- Issue #4272: Add an optional argument to the GzipFile constructor to override
the timestamp in the gzip stream. The default value remains the current time.
The information can be used by e.g. gunzip when decompressing. Patch by
Modified: python/branches/py3k/Modules/_ctypes/callproc.c
==============================================================================
--- python/branches/py3k/Modules/_ctypes/callproc.c (original)
+++ python/branches/py3k/Modules/_ctypes/callproc.c Thu Jan 8 10:34:20 2009
@@ -645,8 +645,8 @@
#ifdef CTYPES_UNICODE
if (PyUnicode_Check(obj)) {
-#ifdef HAVE_USABLE_WCHAR_T
pa->ffi_type = &ffi_type_pointer;
+#ifdef HAVE_USABLE_WCHAR_T
pa->value.p = PyUnicode_AS_UNICODE(obj);
Py_INCREF(obj);
pa->keep = obj;
More information about the Python-checkins
mailing list