[issue23367] integer overflow in unicodedata.normalize

2015-03-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test doesn't hurt. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- versions: +Python 2.7, Python 3.3, Python 3.5 ___ Python tracker ___ ___ Python-bu

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: True, but that could change and is not true in Python 2. I suppose we could revert the change and add a static assertion. On Mon, Mar 2, 2015, at 14:24, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Because isize is the size of real PyU

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: Well, the test doesn't hurt. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because isize is the size of real PyUnicode object. It's maximal value is PY_SSIZE_T_MAX - sizeof(PyASCIIObject) - 1. -- ___ Python tracker _

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why can't (isize > 10 ? 10 : isize) + isize overflow? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually integer overflow in the line space = (isize > 10 ? 10 : isize) + isize; is not possible. Integer overflows in PyMem_Malloc were fixed in issue23446. -- ___ Python tracker

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84025a32fa2b by Benjamin Peterson in branch '3.3': fix possible overflow bugs in unicodedata (closes #23367) https://hg.python.org/cpython/rev/84025a32fa2b New changeset 90f960e79c9e by Benjamin Peterson in branch '3.4': merge 3.3 (#23367) https://h

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Unicode nosy: +ezio.melotti, haypo, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-

[issue23367] integer overflow in unicodedata.normalize

2015-02-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23367] integer overflow in unicodedata.normalize

2015-02-01 Thread paul
New submission from paul: # Bug # --- # # static PyObject* # unicodedata_normalize(PyObject *self, PyObject *args) # { # ... # if (strcmp(form, "NFKC") == 0) { # if (is_normalized(self, input, 1, 1)) { # Py_INCREF(input); # return input; # } #