From ef6fb3dc52e9108f3662b411c307ff583a47c412 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 23 Sep 2005 03:23:46 +0000 Subject: Backport fix for patch #1297028, cjkcodecs does not initialize type pointer --- Misc/NEWS | 24 ++++++++++++++++++++++++ Modules/cjkcodecs/multibytecodec.c | 4 ++++ 2 files changed, 28 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index b77e6db..3b0357d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -4,6 +4,30 @@ Python News (editors: check NEWS.help for information about editing NEWS using ReST.) +What's New in Python 2.4.2 final? +================================= + +*Release date: XX-SEP-2005* + +Core and builtins +----------------- + + +Extension Modules +----------------- + +- Patch #1297028: fix segfault if call type on MultibyteCodec, + MultibyteStreamReader, or MultibyteStreamWriter. + + +Tests +----- + + +Build +----- + + What's New in Python 2.4.2c1 ============================ diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 4444941..7d2d15e 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -1265,6 +1265,10 @@ static struct PyMethodDef __methods[] = { void init_multibytecodec(void) { + MultibyteCodec_Type.ob_type = &PyType_Type; + MultibyteStreamReader_Type.ob_type = &PyType_Type; + MultibyteStreamWriter_Type.ob_type = &PyType_Type; + Py_InitModule("_multibytecodec", __methods); if (PyErr_Occurred()) -- cgit v0.12