[issue24012] Add error checks to PyInit_pyexpat()

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: This is all sorted now: iritkatriel@Irits-MBP cpython % grep "PyModule_AddObject(" Modules/pyexpat.c if (PyModule_AddObject(mod, name, submodule) < 0) { if (PyModule_AddObject(errors_module, "codes", codes_dict) < 0) { if

[issue24012] Add error checks to PyInit_pyexpat()

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: Some parts of the patch have already been applied into master: * PySys_GetObject(): https://github.com/python/cpython/commit/7a5457b6878db61910c81017d10579edb7c91512 * PyDict_SetItem():

[issue24012] Add error checks to PyInit_pyexpat()

2015-04-19 Thread Christian Heimes
New submission from Christian Heimes: Similar to #24011 and #24010 the pyexpat module's init function fails to check some return values for NULL. The patch doesn't include proper reference cleanups as most of the other parts of PyInit_pyexpat() don't cleanup on error, too. CID 982779 (#2 of