Ignore:
Timestamp:
2011-05-30T16:18:42+12:00 (13 years ago)
Author:
ak19
Message:

I think this now fixes a server crashing bug identified by Tanja Mercun on the mailing list on 26 May 2011.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/GSDLQueryLex.cpp

    r18340 r24099  
    9999    AddNChar (here, el.text, charLen);
    100100    length += charLen;
    101     charLen = parse_utf8_char (&*here, endMinus1, &c);
     101    if(numeric < MAXNUMERIC) { // server crash bugfix: don't go past the end with the endMinus1 pointer
     102        charLen = parse_utf8_char (&*here, endMinus1, &c);
     103    }
    102104  }
    103105  // check the next character -if it is a letter, then have a term, not an integer
Note: See TracChangeset for help on using the changeset viewer.