You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Tony Clayton (JIRA)" <ax...@ws.apache.org> on 2005/12/21 20:24:31 UTC

[jira] Updated: (AXIS-2350) array index oob bug in StringUtils.unescapeNumericChar()

     [ http://issues.apache.org/jira/browse/AXIS-2350?page=all ]

Tony Clayton updated AXIS-2350:
-------------------------------

    Attachment: axis-1_3.StringUtils.patch

Patch for StringUtils.unescapeNumericChar() bug in axis-1_3

> array index oob bug in StringUtils.unescapeNumericChar()
> --------------------------------------------------------
>
>          Key: AXIS-2350
>          URL: http://issues.apache.org/jira/browse/AXIS-2350
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.3
>  Environment: XP Pro, JDK1.4.2, axis 1.3
>     Reporter: Tony Clayton
>     Priority: Minor
>  Attachments: axis-1_3.StringUtils.patch
>
> I seem to have uncovered a bug in the org.apache.axis.utils.StringUtils class.
> The unescapeNumericChar() method is throwing a StringIndexOutOfBoundsException for the following input string:
>   String str = "Terse numeric encoding breaks axis 1.3: &#xA;aa";
> The code expects only numeric character encodings in a four-digit format, ie: &#x000A; and behaves badly otherwise.
> In this particular case, the gSOAP C++ library is sending back the terse format (&#xA;) from the SOAP server.
> I have implemented an updated unescapeNumericChar() method to fix this problem. I also write a junit test case.
> I'll attach both.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira