Message373039
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. |
|
Date |
User |
Action |
Args |
2020-07-05 18:34:37 | pablogsal | set | recipients:
+ pablogsal, skrah, David.Edelsohn, Michael.Felt, lys.nikolaou |
2020-07-05 18:34:37 | pablogsal | set | messageid: <1593974077.93.0.543214824609.issue41215@roundup.psfhosted.org> |
2020-07-05 18:34:37 | pablogsal | link | issue41215 messages |
2020-07-05 18:34:37 | pablogsal | create | |
|