summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-07 02:32:21 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-11-07 02:32:21 +0000
commit9241c32eee930dfe8de4b94f6dfd5d9699599080 (patch)
treeed9909972b8568b0c916b9383d08b730c2017213 /Python/Python-ast.c
parent685b9a800fae27dd0db4b7f12f320075c4866e0f (diff)
downloadcpython-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