IBM Support

LI77442: EMPTY STRUCT ASSIGNMENT OPERATOR WRITING BYTE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The default assignment operator for an empty struct is writing a
    single byte during the assignment.  This can cause unexpected
    output, or overwritten data when a class is cast as an empty
    struct and the assignment operator is used.
    

Local fix

  • N/A
    

Problem summary

  • PROBLEM DESCRIPTION:
    An implicit copy assignment operator copies 1 byte for an empty
    class.
    
    USERS AFFECTED:
    Copy assignment objects with empty class type or casting to
    empty class type before copy assignment.
    

Problem conclusion

  • The issue was corrected, and the 1 byte is no longer copied.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77442

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5724X1400

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-06-11

  • Closed date

    2013-06-11

  • Last modified date

    2013-06-11

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

    IV28202

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5724X1400

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B10","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
14 October 2021