IBM Support

PM41691: THE CODE FOR CONVERTING A RANGE OF BYTES FROM UTF8 TO UTF16 FOR A NON-UTF8 RESULT WAS INCORRECT IN THE XCI SERIALIZER

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The code for converting a range of an array of UTF8 bytes to
    UTF16 when serializing to a non-UTF8 result was incorrect and
    would corrupt the output when the UTF8 array contained
    non-ASCII, for example, multi-byte, characters.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of the XML API for IBM WebSphere      *
    *                  Application Server V8.0                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect UTF8 to UTF16 conversion      *
    *                      during serialization of a subrange of   *
    *                      a UTF8 array when writing to a          *
    *                      non-UTF8 result.                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The code incorrectly assumed that offsets in UTF8 byte arrays
    would be the same as the offsets in the UTF16 char array result
    after conversion from UTF16.  This is only true when the UTF8
    input only contains US-ASCII code points.
    

Problem conclusion

  • The code was rewritten to use the proper methods to convert
    the range of the UTF8 input into UTF16 and use the correct
    range of the result.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.1.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM41691

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-15

  • Closed date

    2011-06-15

  • Last modified date

    2011-06-28

  • APAR is sysrouted FROM one or more of the following:

    PM21520

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 October 2021