[issue7615] unicode_escape codec does not escape quotes

Richard Hansen report at bugs.python.org
Sun Jan 10 02:52:42 CET 2010


Richard Hansen <rhansen at bbn.com> added the comment:

Attaching a patch for an issue discovered while looking at the code:
  * The UTF-16 decode logic in the Unicode escape encoders no longer reads past the end of the provided Py_UNICODE buffer if the last character's value is between 0xD800 and 0xDC00.

This patch is meant to be applied after unicode_escape_1_minimal.patch.

----------
Added file: http://bugs.python.org/file15811/unicode_escape_2_utf-16_invalid_read.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7615>
_______________________________________


More information about the Python-bugs-list mailing list