Branch: Tag:

2001-07-27

2001-07-27 14:56:32 by David Norlin <norlin@roxen.com>

Fixed an infinite-loop bug triggered by ' without matching ending '.

Rev: lib/modules/Parser.pmod/C.pmod:1.24
Rev: lib/modules/Parser.pmod/Pike.pmod:1.9

204:    case '\'':    pos++;    if(data[pos]=='\\') pos++; -  pos=search(data, "'", pos)+1; +  int end=search(data, "'", pos)+1; +  if (!end) +  UNKNOWN_TOKEN; +  pos=end;    break;       case '"':