IBM Support

PM21520: 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:  All users of IBM WebSphere Application      *
    *                  Server V7.0 Feature Pack for XML            *
    ****************************************************************
    * 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 1.0.0.9.  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

    PM21520

  • Reported component name

    XML FEATUREPACK

  • Reported component ID

    5724J0856

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-08-30

  • Closed date

    2010-09-07

  • Last modified date

    2010-09-07

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

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

    PM41691

Fix information

  • Fixed component name

    XML FEATUREPACK

  • Fixed component ID

    5724J0856

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022