IBM Support

IV56004: VSWPRINTF & SWPRINTF SHOULD ADD SINGLE NULL TERMINAL CHARACTER APPLIES TO AIX 7100-03

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The vswprintf and swprintf APIs should add only one NULL
    terminal character instead of the current behavior, where
     we fill NULL characters in the remaining buffer.
    Though this is not a defect or against our documentation,
    but this behavior is not inline
    with UNIX flavors, making portability of the code
    tougher.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:
    * Systems running the 7100-03 Technology Level with the
    * bos.rte.libc fileset below the 7.1.3.15 level.
    ****************************************************************
    * PROBLEM DESCRIPTION:
    * The vswprintf and swprintf APIs should add only one NULL
    * terminal character instead of the current behavior, where
    *  we fill NULL characters in the remaining buffer.
    * Though this is not a defect or against our documentation,
    * but this behavior is not inline
    * with UNIX flavors, making portability of the code
    * tougher.
    ****************************************************************
    * RECOMMENDATION:
    * Install APAR IV56004.
    ****************************************************************
    

Problem conclusion

  • Code changes are made to ensure that vswprintf and swprintf
    add only one NULL terminating character in the output.
    

Temporary fix

Comments

  • 6100-09 - use AIX APAR IV56395
    6100-09 - use AIX APAR IV56395
    6100-09 - use AIX APAR IV56395
    7100-03 - use AIX APAR IV56004
    7100-04 - use AIX APAR IV56518
    

APAR Information

  • APAR number

    IV56004

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    YesPE

  • HIPER

    NoHIPER

  • Submitted date

    2014-02-27

  • Closed date

    2014-03-05

  • Last modified date

    2016-05-10

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

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

    IV56395 IV56518

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U866404

       UP14/05/22 I 1000



Document information

More support for: AIX Enterprise Edition

Software version: 710

Operating system(s): AIX

Reference #: IV56004

Modified date: 10 May 2016