IBM Support

PM22811: MISRA_16_1_i rule misses violation in Logiscope 6.6.3

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • As per the rule, Functions like int foo(int num,...) are not
    allowed with variable numbers of arguments.
    When the below code is checked for MISRA_16_1_i in Logiscope
    6.3, we observe the violations reported for Function
    definitions, declarations and calls.
    However, the same in Logiscope 6.6.3, reports violations for
    only function definitions.
    
    #include 'misra.h'
    
    static void mc2_1601a ( uint16_t variable_arg1, ... );    /*
    Violation : isn't detected anymore in 6.6.3 */
    
    
    void mc2_1601 ( void )
    {
      uint16_t var_argument = get_uint16 ( );
    
      mc2_1601a ( var_argument , var_argument );              /*
    Violation : isn't detected anymore i en 6.6.3 */
    }
    
    /* Function defined with variable number of arguments */
    static void mc2_1601a ( uint16_t variable_arg1, ... )      /*
    Violation  detected both in 6.3 and 6.6.3 */
    {
      use_uint16 ( variable_arg1 );
    }
    

Local fix

Problem summary

  • As per the rule, Functions like int foo(int num,...) are not all
    When the below code is checked for MISRA_16_1_i in Logiscope 6.3
    for Function definitions, declarations and calls.
    However, the same in Logiscope 6.6.3, reports violations for onl
    
    #include "misra.h"
    
    static void mc2_1601a ( uint16_t variable_arg1, ... );    /* Vio
    
    
    void mc2_1601 ( void )
    {
      uint16_t var_argument = get_uint16 ( );
    
      mc2_1601a ( var_argument , var_argument );              /* Vio
    }
    
    /* Function defined with variable number of arguments */
    static void mc2_1601a ( uint16_t variable_arg1, ... )      /* Vi
    {
      use_uint16 ( variable_arg1 );
    }
    

Problem conclusion

  • Fixed in Rational Logiscope 6.6.3 iFix1.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM22811

  • Reported component name

    TLOGIC LOGISCOP

  • Reported component ID

    5724V81LS

  • Reported release

    660

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-09-20

  • Closed date

    2010-12-03

  • Last modified date

    2010-12-03

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

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

Fix information

  • Fixed component name

    TLOGIC LOGISCOP

  • Fixed component ID

    5724V81LS

Applicable component levels

  • R660 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYQHS","label":"Rational Logiscope"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.6","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
03 December 2010