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

Messages (2)
msg270702 - (view) Author: pablo sacristan (pabstersac) Date: 2016-07-18 05:54
There is an integer overflow in bin() because python incorrectly checks the length of the input in bin().
bin(0xFFFFFFFFFFFFFFF+100000**8000000000)
That line will freeze python until you restart it, which basically is a crash because python stops working completely.
Hope it helps ;)
msg270723 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-07-18 06:31
See msg270712.
History
Date User Action Args
2016-07-18 06:31:23serhiy.storchakasetstatus: open -> closed

nosy: + serhiy.storchaka
messages: + msg270723

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