[issue31303] xml.etree.ElementTree fails to parse a document (regression)
Serhiy Storchaka
report at bugs.python.org
Tue Aug 29 14:58:10 EDT 2017
Serhiy Storchaka added the comment:
Simpler reproducer:
>>> import xml.etree.ElementTree
>>> xml.etree.ElementTree.XML(b'<key attr="' + b'x'*1023 + b'\xc3\xa0""/>')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/serhiy/py/cpython/Lib/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 1023: invalid continuation byte
Seems this is a regression in the Expat library.
----------
nosy: +haypo
priority: normal -> critical
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31303>
_______________________________________
More information about the Python-bugs-list
mailing list