Changeset 24099

Show
Ignore:
Timestamp:
30.05.2011 16:18:42 (8 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.

Files:
1 modified

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