Menu

#7 parser setting file error

v1.0 (example)
closed-accepted
nobody
None
5
2016-05-02
2011-07-06
XingWang
No

Error encountered parsing the settings file
The mytestconfig.xml file is not formatted properly.

Details of the problem: String index out of range: 784

The problem is in the file ParseSaveSetting.java

public void characters(char[] ch, int start, int length)
throws SAXException {
String tmp = new String(ch,start,length);
tmp = tmp.substring(start, start + length);
switch (tagType){

the line
tmp = tmp.substring(start, start + length);
is of no use and cause the exception.

I begin to wonder if the version I check out is the right one

Discussion

  • XingWang

    XingWang - 2011-07-06

    the setting file

     
  • Daniel McEnnis

    Daniel McEnnis - 2016-05-02

    The code in this section is quite robust and has been stable since 2005, so I am quite skeptical it is a compiler issue. However, this section has been targeted by hackers before - being modified on server / in transit to contain errors. As of now, no known repeats of this hack have been found since the last repair.

    This phenomenon is quite similar to a bug found in Graph-RAT. It was found to be a JVM issue where inbound data is not read correctly by JVM file reading methods - creating null pointers on internal strings after error checks for example. It is a rare hack often associated with human trafficking - are you having programming problems in general? Checking with your home countries computer crime division may be appropriate.

     
  • Daniel McEnnis

    Daniel McEnnis - 2016-05-02
    • status: open --> closed-accepted
    • Group: --> v1.0 (example)
     

Log in to post a comment.

Auth0 Logo