[issue10254] unicodedata.normalize('NFC', s) regression

Antoine Pitrou report at bugs.python.org
Wed Dec 15 23:18:31 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

After a bit of debugging, the crash is due to the "skipped" array being overflowed in nfc_nfkc() in unicodedata.c. "cskipped" goes up to 21 while the array only has 20 entries. This happens in all branches (but only crashes in 2.7 right now for probably unimportant reasons).

And the problem was indeed introduced by Victor's patch in issue1054943. Just before, "cskipped" would only go up to 1.

----------
priority: normal -> high
type: behavior -> crash

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10254>
_______________________________________


More information about the Python-bugs-list mailing list