From d00e54bc2582029f8cca9a965d015cf206605916 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 2 Oct 2005 01:51:56 +0000 Subject: Backported: Fix segfault with invalid coding. (See SF bug: 772896 for another fix) --- Misc/NEWS | 5 +++++ Python/pythonrun.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index 5b63fe0..afb39a0 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -9,6 +9,11 @@ What's New in Python 2.4.3c1? *Release date: XX-XX-200X* +Core and builtins +----------------- + +- Fix segfault with invalid coding. + Extension Modules ----------------- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index a35bb3f..3317e55 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1484,7 +1484,7 @@ err_input(perrdetail *err) msg = "unknown decode error"; Py_DECREF(type); Py_DECREF(value); - Py_DECREF(tb); + Py_XDECREF(tb); break; } default: -- cgit v0.12