mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-40958: Avoid buffer overflow in the parser when indexing the current line (GH-20875) (GH-20919)
(cherry picked from commit 51c5896b62
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
3cf809475a
commit
7795ae8f05
4 changed files with 16 additions and 16 deletions
|
@ -669,7 +669,7 @@ FSTRINGS_TRACEBACKS = {
|
|||
{a$b}
|
||||
'''
|
||||
""",
|
||||
'(a$b)',
|
||||
'(a$b)\n',
|
||||
),
|
||||
'multiline_fstring_brace_on_next_line': (
|
||||
"""
|
||||
|
@ -677,7 +677,7 @@ FSTRINGS_TRACEBACKS = {
|
|||
{a$b
|
||||
}'''
|
||||
""",
|
||||
'(a$b',
|
||||
'(a$b\n',
|
||||
),
|
||||
'multiline_fstring_brace_on_previous_line': (
|
||||
"""
|
||||
|
@ -685,7 +685,7 @@ FSTRINGS_TRACEBACKS = {
|
|||
{
|
||||
a$b}'''
|
||||
""",
|
||||
'a$b)',
|
||||
'a$b)\n',
|
||||
),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue