[issue27549] Integer Overflow Crash On bytearray()

pablo sacristan report at bugs.python.org
Mon Jul 18 01:54:59 EDT 2016


New submission from pablo sacristan:

There is an integer overflow because python doesn't check the length correctly on bytearray:
bytearray(0xFFFFFFFFFFFFFFF**10000000000**80000000000000000)
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 ;)

----------
messages: 270703
nosy: pabstersac
priority: normal
severity: normal
status: open
title: Integer Overflow Crash On bytearray()
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27549>
_______________________________________


More information about the Python-bugs-list mailing list