[Python-checkins] python/dist/src/Python pythonrun.c,2.216,2.217

nnorwitz@users.sourceforge.net nnorwitz at users.sourceforge.net
Sun Oct 2 03:48:54 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8132/Python

Modified Files:
	pythonrun.c 
Log Message:
- Fix segfault with invalid coding.
- SF Bug #772896, unknown encoding results in MemoryError, which is not helpful

I will only backport the segfault fix.  I'll let Anthony decide if he wants
the other changes backported.  I will do the backport if asked.


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.216
retrieving revision 2.217
diff -u -d -r2.216 -r2.217
--- pythonrun.c	24 Aug 2005 08:39:24 -0000	2.216
+++ pythonrun.c	2 Oct 2005 01:48:50 -0000	2.217
@@ -1487,7 +1487,7 @@
 			msg = "unknown decode error";
 		Py_DECREF(type);
 		Py_DECREF(value);
-		Py_DECREF(tb);
+		Py_XDECREF(tb);
 		break;
 	}
 	case E_LINECONT:



More information about the Python-checkins mailing list