[issue46503] assertion failure in Parser/string_parser.c

Gregory P. Smith report at bugs.python.org
Mon Jan 24 13:30:42 EST 2022


New submission from Gregory P. Smith <greg at krypto.org>:

```
>>> v = r"""f'\N  '"""
>>> import ast
>>> ast.literal_eval(v)
python: ../gpshead/Parser/string_parser.c:487: fstring_find_literal: Assertion `s == end || *s == '{' || *s == '}'' failed.
Aborted
```

this comes from oss-fuzz after enabling assert checks in its cpython builds. :)

https://oss-fuzz.com/testcase-detail/4805529363415040 & https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43730 for those who have access.

----------
components: Parser
messages: 411503
nosy: gregory.p.smith, lys.nikolaou, pablogsal
priority: high
severity: normal
stage: needs patch
status: open
title: assertion failure in Parser/string_parser.c
type: crash
versions: Python 3.11

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


More information about the Python-bugs-list mailing list