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

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

Messages (3)
msg270703 - (view) Author: pablo sacristan (pabstersac) Date: 2016-07-18 05:54
There is an integer overflow because python doesn't check the length correctly on bytearray:
That will not return an overflow message, and even though my hex knowledge is very bad I do believe 0xFFFFFFFFFFFFFFF**10000000000**80000000000000000 is more than 0xFFFFFFFFFFFFFFFF which does return a overflow message.
Hope it helps ;)
msg270715 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2016-07-18 06:27
So if it doesn't return an overflow message, what does it returns?
msg270721 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-07-18 06:30
See msg270712.
Date User Action Args
2016-07-18 06:30:33serhiy.storchakasetstatus: open -> closed

nosy: + serhiy.storchaka
messages: + msg270721

resolution: not a bug
stage: resolved
2016-07-18 06:27:42xiang.zhangsetnosy: + xiang.zhang
messages: + msg270715
2016-07-18 05:54:59pabstersaccreate