]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-25083: Python can sometimes create incorrect .pyc files (GH-8449)
authortzickel <tzickel@users.noreply.github.com>
Mon, 10 Sep 2018 18:46:14 +0000 (21:46 +0300)
committerPetr Viktorin <encukou@gmail.com>
Mon, 10 Sep 2018 18:46:14 +0000 (11:46 -0700)
commitf64c813de84011a84ca21d75a294861a9cc2dfdc
tree80cecd0ba567158bcb642a1283a28189f18b5713
parented62e645101fdd83aee519f6f33a4384ff79f105
bpo-25083: Python can sometimes create incorrect .pyc files (GH-8449)

Python 2 never checked for I/O error when reading .py files and
thus could mistake an I/O error for EOF and create incorrect .pyc
files.
This adds an check for this and aborts on an error.
Include/errcode.h
Misc/NEWS.d/next/Core and Builtins/2018-07-25-22-47-19.bpo-25083.HT_hXh.rst [new file with mode: 0644]
Parser/tokenizer.c
Python/pythonrun.c