This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients David.Edelsohn, Michael.Felt, lys.nikolaou, pablogsal, skrah
Date 2020-07-05.18:34:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593974077.93.0.543214824609.issue41215@roundup.psfhosted.org>
In-reply-to
Content
Michael, can you try with this patch:

diff --git a/Parser/pegen.c b/Parser/pegen.c
index 53e3d49138..7faeec26ad 100644
--- a/Parser/pegen.c
+++ b/Parser/pegen.c
@@ -528,7 +528,7 @@ _get_keyword_or_name_type(Parser *p, const char *name, int name_len)
     if (name_len >= p->n_keyword_lists || p->keywords[name_len] == NULL) {
         return NAME;
     }
-    for (KeywordToken *k = p->keywords[name_len]; k->type != -1; k++) {
+    for (KeywordToken *k = p->keywords[name_len]; k != NULL && k->type != -1; k++) {
         if (strncmp(k->str, name, name_len) == 0) {
             return k->type;
         }


For whatever reasons, it seems that me are calling into _get_keyword_or_name_type with a name_len of 0.
History
Date User Action Args
2020-07-05 18:34:37pablogsalsetrecipients: + pablogsal, skrah, David.Edelsohn, Michael.Felt, lys.nikolaou
2020-07-05 18:34:37pablogsalsetmessageid: <1593974077.93.0.543214824609.issue41215@roundup.psfhosted.org>
2020-07-05 18:34:37pablogsallinkissue41215 messages
2020-07-05 18:34:37pablogsalcreate