eclipse-ee4j / jaxb-fi

Apache License 2.0
8 stars 10 forks source link

Bug in StAXDocumentParser.isWhiteSpace() #42

Closed Tomas-Kraus closed 13 years ago

Tomas-Kraus commented 13 years ago

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++){

Affected Versions

[1.2.9]

Tomas-Kraus commented 5 years ago
Tomas-Kraus commented 13 years ago

@glassfishrobot Commented Reported by beckchr

Tomas-Kraus commented 13 years ago

@glassfishrobot Commented oleksiys said: 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

Tomas-Kraus commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA FI-42

Tomas-Kraus commented 13 years ago

@glassfishrobot Commented Marked as fixed on Monday, March 7th 2011, 6:58:30 pm