Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

min_width сan be large negative number, and there are subtractions from it. It 
may be safer to replace the assert with something like min_width = Py_MAX(0, 
min_width). Or ensure that it is non-negative before calling 
_PyUnicode_InsertThousandsGrouping().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35560>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to