[pypy-issue] Issue #3132: pypy3: utf-16 + surrogatepass doesn't error out on invalid input (pypy/pypy)

Christoph Reiter issues-reply at bitbucket.org
Mon Dec 23 15:47:29 EST 2019


New issue 3132: pypy3: utf-16 + surrogatepass doesn't error out on invalid input
https://bitbucket.org/pypy/pypy/issues/3132/pypy3-utf-16-surrogatepass-doesnt-error

Christoph Reiter:

`b"\xd8=a".decode("utf-16-be", "surrogatepass")`

Expected: `UnicodeDecodeError: 'utf-16-be' codec can't decode byte 0x61 in position 2: truncated data`

Actual: No error, wrong result returned.

‌




More information about the pypy-issue mailing list