bpo-40958: Avoid buffer overflow in the parser when indexing the current line (GH-20875)

3 files changed