fi
  1. fi
  2. FI-42

Bug in StAXDocumentParser.isWhiteSpace()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.9
    • Fix Version/s: 1.2.10
    • Component/s: None
    • Labels:
      None

      Description

      Due to an index-range bug the isWhiteSpace() method may return true for non-whitespace characters:

      In line 651 of StAXDocumentParser.java,

      for (int i=start; i< length;i++){

      should be

      for (int i=start; i< start+length;i++){

        Activity

        Hide
        oleksiys added a comment -

        the patch was applied,
        will also appreciate if you can contribute the unit test

        Thanks a lot in advance.

        WBR.

        Project: fi
        Repository: svn
        Revision: 901
        Date: 2011-03-08 10:56:05 UTC
        Link:

        Log Message:
        ------------
        fix issue #42
        http://java.net/jira/browse/FI-42

        "Bug in StAXDocumentParser.isWhiteSpace()"
        Patch is suggested by beckchr

        Show
        oleksiys added a comment - the patch was applied, will also appreciate if you can contribute the unit test Thanks a lot in advance. WBR. Project: fi Repository: svn Revision: 901 Date: 2011-03-08 10:56:05 UTC Link: Log Message: ------------ fix issue #42 http://java.net/jira/browse/FI-42 "Bug in StAXDocumentParser.isWhiteSpace()" Patch is suggested by beckchr

          People

          • Assignee:
            Unassigned
            Reporter:
            beckchr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: