classification
Title: Integer Overflow On print()
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 05:56 by pabstersac, last changed 2016-07-18 06:29 by serhiy.storchaka. This issue is now closed.

Messages (2)
msg270705 - (view) Author: pablo sacristan (pabstersac) Date: 2016-07-18 05:56
There is an integer overflow because python doesn't check the length correctly on print() statements:
print(0xFFFFFFFFFFFFFFF**10000000000**80000000000000000)
That will overflow and python would stop working, so it would be as good as crashed :)
Hope it helps ;)
msg270720 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-07-18 06:29
See msg270712.
History
Date User Action Args
2016-07-18 06:29:18serhiy.storchakasetstatus: open -> closed

nosy: + serhiy.storchaka
messages: + msg270720

resolution: not a bug
stage: resolved
2016-07-18 05:56:39pabstersaccreate