mirror of
https://github.com/python/cpython.git
synced 2026-05-17 18:08:50 -04:00
eeb896c411
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.