[pypy-issue] Issue #2481: unicodedata does not protect against larger-than-0x10ffff values (pypy/pypy)

Armin Rigo issues-reply at bitbucket.org
Thu Feb 23 13:08:39 EST 2017


New issue 2481: unicodedata does not protect against larger-than-0x10ffff values
https://bitbucket.org/pypy/pypy/issues/2481/unicodedata-does-not-protect-against

Armin Rigo:

You can get nonsense and potential crashes of unicodedata by doing this:

```
#!python

>>>> u = array.array('u', 'abcd').tounicode()
>>>> u
u'\U64636261'
>>>> u.isspace()
```




More information about the pypy-issue mailing list