classification
Title: Integer Overflow On unicode()
Type: Stage: resolved
Components: Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: pabstersac, serhiy.storchaka
Priority: normal Keywords:

Created on 2016-07-18 06:04 by pabstersac, last changed 2016-07-18 06:28 by serhiy.storchaka. This issue is now closed.

Messages (2)
msg270707 - (view) Author: pablo sacristan (pabstersac) Date: 2016-07-18 06:04
There is an integer overflow in unicode() because python incorrectly checks the length of unicode():
unicode(0xFFFFFFFFFFFFFFF+100000**8000000000)
That freezes python until you restart it which is basically the same effect as crashing python.
Hope it helps ;)
msg270718 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-07-18 06:28
See msg270712.
History
Date User Action Args
2016-07-18 06:28:41serhiy.storchakasetstatus: open -> closed

nosy: + serhiy.storchaka
messages: + msg270718

resolution: not a bug
stage: resolved
2016-07-18 06:04:24pabstersaccreate