commit | 3db4161011cbf6988102228ffc7e5213e680241e | [log] [tgz] |
---|---|---|
author | Stefan Krah <stefan@bytereef.org> | Thu Jun 24 09:33:05 2010 +0000 |
committer | Stefan Krah <stefan@bytereef.org> | Thu Jun 24 09:33:05 2010 +0000 |
tree | eaf73fb8d45f47607011b596d1a81ab83fb0576d | |
parent | 947ce58a9018d23cb1e5e8de550f2ba0e542248e [diff] [blame] |
Issue #9020: The Py_IS* macros from pyctype.h should generally only be used with signed/unsigned char arguments. For integer arguments, EOF has to be handled separately.
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index a647d9c..ee6313b 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c
@@ -1365,7 +1365,7 @@ goto letter_quote; break; } - while (Py_ISALNUM(c) || c == '_') { + while (c != EOF && (Py_ISALNUM(c) || c == '_')) { c = tok_nextc(tok); } tok_backup(tok, c);