[New-bugs-announce] [issue46762] assertion failure in f-string parsing Parser/string_parser.c

Ammar Askar report at bugs.python.org
Tue Feb 15 17:19:52 EST 2022


New submission from Ammar Askar <ammar at ammaraskar.com>:

Similar to https://bugs.python.org/issue46503 found by the ast.literal_eval fuzzer

```
>>> f'{<'
python: Parser/string_parser.c:346: fstring_compile_expr: Assertion `*expr_end == '}' || *expr_end == '!' || *expr_end == ':' || *expr_end == '='' failed.
[1]    14060 abort      ./python
```

----------
assignee: eric.smith
components: Parser
messages: 413302
nosy: ammar2, eric.smith, gregory.p.smith, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: assertion failure in f-string parsing Parser/string_parser.c
type: crash
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46762>
_______________________________________


More information about the New-bugs-announce mailing list