New submission from Xiang Zhang:

The assert statement `assert(Py_UNICODE_IS_SURROGATE(ch));` in 
_Py_DecodeUTF8_surrogateescape is wrong. Code points > 0xffff could reach it 
and fail.

----------
files: false_assert.patch
keywords: patch
messages: 280406
nosy: serhiy.storchaka, xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: False assert in _Py_DecodeUTF8_surrogateescape
type: crash
versions: Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45408/false_assert.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28648>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to