Uploaded image for project: 'EtherNet/IP Core V2'
  1. EtherNet/IP Core V2
  2. PSEIPCORE-174

Wrong parenthesis of define "EIP_OBJECT_CIP_SERVICE_CNF_SIZE" (certification issue)

    Details

    • Account:
      SPC EthernetIp Core (SPCETHERNET)

      Description

      Using the define EIP_OBJECT_CIP_SERVICE_CNF_SIZE in a computation might lead to unexpected results.

      This is due to how this define is implemented:

      #define EIP_OBJECT_CIP_SERVICE_CNF_SIZE     (sizeof(EIP_OBJECT_CIP_SERVICE_CNF_T)) - EIP_OBJECT_MAX_PACKET_LEN

      Workaround:
      As a workaround, applications must add additional parenthesis around the define when using it to ensure proper results.

      Fix:
      The implementation of the define shall be changed to the following:

      #define EIP_OBJECT_CIP_SERVICE_CNF_SIZE     (sizeof(EIP_OBJECT_CIP_SERVICE_CNF_T) - EIP_OBJECT_MAX_PACKET_LEN)

        Attachments

          Issue Links

            Expenses

              Activity

                Status Description

                  People

                  • Reporter:
                    MBommert Marc Bommert
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: