[issue46503] assertion failure in Parser/string_parser.c

2022-01-28 Thread Eric V. Smith
Eric V. Smith added the comment: In case anyone cares: in a non-debug build, this error had no real effect. It just caused the "find the literal part of an fstring" routine to terminate early, but since the part that it had already identified was still in error, a syntax error was still rais

[issue46503] assertion failure in Parser/string_parser.c

2022-01-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the quick fix, Eric! -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue46503] assertion failure in Parser/string_parser.c

2022-01-25 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: +29064 pull_request: https://github.com/python/cpython/pull/30883 ___ Python tracker ___ ___

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 894e8c13484822458d53cc77c9265b7a88450a4b by Miss Islington (bot) in branch '3.10': bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in f-strings. (GH-30865) (GH-30866) https://github.com/python/cpython/commit/894e8

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset c314e3e829943b186e1c894071f00c613433cfe5 by Miss Islington (bot) in branch '3.9': bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in f-strings. (GH-30865) (30867) https://github.com/python/cpython/commit/c314e3e82

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +29048 pull_request: https://github.com/python/cpython/pull/30867 ___ Python tracker ___ __

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 0daf72194bd4e31de7f12020685bb39a14d6f45e by Eric V. Smith in branch 'main': bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in f-strings. (GH-30865) https://github.com/python/cpython/commit/0daf72194bd4e31de7f1202

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29047 pull_request: https://github.com/python/cpython/pull/30866 ___ Python tracker _

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Eric V. Smith added the comment: Note that f'\N ' (with a single space) isn't enough to trigger this behavior. It requires at least two characters after the '\N'. The first is when the invalid string is recognized, and it's the presence of the second character that triggers the failed assert

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +29046 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30865 ___ Python tracker ___

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Eric V. Smith added the comment: This triggers the same problem: f'\N ' ast.literal_eval() isn't needed. I think it's just the assert that's wrong, but I'm still checking. -- ___ Python tracker ___

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Eric V. Smith added the comment: I'll take a look. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: pablogsal -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Adding Eric as this seems to be in the f-string parser. -- ___ Python tracker ___ ___ Pyth

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue46503] assertion failure in Parser/string_parser.c

2022-01-24 Thread Gregory P. Smith
New submission from Gregory P. Smith : ``` >>> 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