commit | eeb896c4116dd763efea45cb3c1b53257128f4e4 | [log] [tgz] |
---|---|---|
author | Martin Panter <vadmium+py@gmail.com> | Sat Nov 07 02:32:21 2015 +0000 |
committer | Martin Panter <vadmium+py@gmail.com> | Sat Nov 07 02:32:21 2015 +0000 |
tree | 34e8df45212ee5c99849dfca30977b92901615d6 | |
parent | 9ad0aae6566311c6982a20955381cda5a2954519 [diff] |
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.