diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-11-07 02:32:21 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-07 02:32:21 +0000 |
commit | 9241c32eee930dfe8de4b94f6dfd5d9699599080 (patch) | |
tree | ed9909972b8568b0c916b9383d08b730c2017213 /Python/Python-ast.c | |
parent | 685b9a800fae27dd0db4b7f12f320075c4866e0f (diff) | |
download | cpython-9241c32eee930dfe8de4b94f6dfd5d9699599080.tar.gz |
Issue #24802: Copy bytes-like objects to null-terminated buffers if necessary
This avoids possible buffer overreads when int(), float(), compile(), exec()
and eval() are passed bytes-like objects. Similar code is removed from the
complex() constructor, where it was not reachable.
Patch by John Leitch, Serhiy Storchaka and Martin Panter.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions