diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-20 23:00:59 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-20 23:00:59 +0200 |
commit | ec2319c46d11e8f486e7def785339af5415a3559 (patch) | |
tree | e07dfd50ae27a470fade7c623d2deac6c9fb91c3 /Python/getargs.c | |
parent | 75024c6589539f72af69ce61cd6493b193989c2d (diff) | |
download | cpython-git-ec2319c46d11e8f486e7def785339af5415a3559.tar.gz |
Fix memleak in os.getrandom()
Issue #27778: Fix a memory leak in os.getrandom() when the getrandom() is
interrupted by a signal and a signal handler raises a Python exception.
Modify also os_getrandom_impl() to avoid the temporary buffer, use directly a
Python bytes object.
Diffstat (limited to 'Python/getargs.c')
0 files changed, 0 insertions, 0 deletions