[New-bugs-announce] [issue35372] Code page decoder incorrectly handles input >2GiB

Serhiy Storchaka report at bugs.python.org
Sat Dec 1 12:17:56 EST 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

>>> b = b'a'*(2**31-2)+b'\xff'*2
>>> x, y = codecs.code_page_decode(932, b, 'replace', True)
>>> len(x)
2
>>> x, y
('aa', 2147483648)

----------
assignee: serhiy.storchaka
components: Interpreter Core
messages: 330855
nosy: serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Code page decoder incorrectly handles input >2GiB
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35372>
_______________________________________


More information about the New-bugs-announce mailing list