Changeset 105 for python


Ignore:
Timestamp:
Nov 10, 2010, 4:21:30 PM (15 years ago)
Author:
Yuri Dario
Message:

python: exit infinite loop on tokenizer on EOF, fixes yum --disablerepo hang.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Parser/tokenizer.c

    r2 r105  
    12931293                while (isalnum(c) || c == '_') {
    12941294                        c = tok_nextc(tok);
     1295#ifdef __KLIBC__
     1296                        if (c == EOF)
     1297                                break;
     1298#endif
    12951299                }
    12961300                tok_backup(tok, c);
Note: See TracChangeset for help on using the changeset viewer.