[New-bugs-announce] [issue40388] random.choice integer overflow v3.5.2

Nicholas Prowse report at bugs.python.org
Sat Apr 25 04:56:27 EDT 2020


New submission from Nicholas Prowse <nick5990 at yahoo.co.uk>:

Filename: random.py
Location of file: /use/lib/python3.5/random.py
Function: random.choice()
Input: 40 digit integer
Expected output: no crash
Actual output: Crash
Line number: 253
Error message: "Python int too large to convert to C ssize_t"

Traceback:
a = random.choice(sequence)
i= self._randbelow(len(seq))

Error occurs on last line 253.

----------
components: Library (Lib)
messages: 367266
nosy: dev00790
priority: normal
severity: normal
status: open
title: random.choice integer overflow v3.5.2
type: crash
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40388>
_______________________________________


More information about the New-bugs-announce mailing list