diff -r 439517000aa2 Modules/unicodedata.c --- a/Modules/unicodedata.c Sat Apr 18 13:15:10 2015 +0100 +++ b/Modules/unicodedata.c Sun Apr 19 00:23:10 2015 +0200 @@ -1231,7 +1231,7 @@ { Py_UCS4 code; unsigned int index; - if (name_length > INT_MAX) { + if (name_length > NAME_MAXLEN-1) { PyErr_SetString(PyExc_KeyError, "name too long"); return NULL; }