[Python-checkins] cpython (3.4): bail in unicode error's __str__ methods if the objects are not properly

Terry Reedy tjreedy at udel.edu
Wed Apr 2 20:49:53 CEST 2014


On 4/2/2014 12:17 PM, benjamin.peterson wrote:
> http://hg.python.org/cpython/rev/140c5da3dc82
> changeset:   90110:140c5da3dc82
> branch:      3.4
> parent:      90108:6185b71bdc1c
> user:        Benjamin Peterson <benjamin at python.org>
> date:        Wed Apr 02 12:15:06 2014 -0400
> summary:
>    bail in unicode error's __str__ methods if the objects are not properly initialized (closes #21134)

> +        klasses = UnicodeDecodeError, UnicodeDecodeError, UnicodeTranslateError

I suspect the first should the first be Unicode*En*codeError.

---------------
>
> +- Issue #21134: Fix segfault when str is called on an uninitialized
> +  UnicodeEncodeError, UnicodeDecodeError, or UnicodeTranslateError object.



More information about the Python-checkins mailing list