[issue39510] use-after-free in BufferedReader.readinto()

2020-01-31 Thread Philipp Gesang
Change by Philipp Gesang : -- keywords: +patch pull_requests: +17669 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18295 ___ Python tracker <https://bugs.python.org/issu

[issue39510] use-after-free in BufferedReader.readinto()

2020-01-31 Thread Philipp Gesang
New submission from Philipp Gesang : reader = open ("/dev/zero", "rb") _void = reader.read (42) reader.close () reader.readinto (bytearray (42)) ### BANG! Bisected to commit dc469454ec. PR on Github to follow. -- messages: 361119 nosy: phg prior