[issue27278] py_getrandom() uses an int for syscall() result

STINNER Victor report at bugs.python.org
Thu Jun 9 03:42:45 EDT 2016


New submission from STINNER Victor:

syscall() result type is long.

Moreover, long type might can smaller than the size type, so we may need to add:

n = Py_MIN(size, LONG_MAX);

----------
messages: 267969
nosy: haypo
priority: normal
severity: normal
status: open
title: py_getrandom() uses an int for syscall() result
versions: Python 3.5, Python 3.6

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


More information about the Python-bugs-list mailing list