From: Christian Heimes Date: Sat, 20 Jul 2013 12:57:16 +0000 (+0200) Subject: Check return value of PyType_Ready(&EncodingMapType) X-Git-Tag: v3.4.0a1~134^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26532f7519b9b7764dd046acab49d5fc5dbcd94d;p=thirdparty%2FPython%2Fcpython.git Check return value of PyType_Ready(&EncodingMapType) CID 486654 --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 2e40c273a443..446520ae93ac 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -14164,7 +14164,8 @@ int _PyUnicode_Init(void) PyUnicode_2BYTE_KIND, linebreak, Py_ARRAY_LENGTH(linebreak)); - PyType_Ready(&EncodingMapType); + if (PyType_Ready(&EncodingMapType) < 0) + Py_FatalError("Can't initialize encoding map type"); if (PyType_Ready(&PyFieldNameIter_Type) < 0) Py_FatalError("Can't initialize field name iterator type");