Uploaded image for project: 'EtherNet/IP Core V3'
  1. EtherNet/IP Core V3
  2. PSEIP-44

Possible crash in host application overload case

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V3.5.0.0
    • Fix Version/s: V3.5.0.1, V3.5.1.0, V3.6.0.0
    • Component/s: GCI
    • Labels:
      None
    • Account:
      SPC EthernetIp Core (SPCETHERNET)

      Description

            char* szLogBookEntry = "SvcCbNoRes(";
            szLogBookEntry[11] = (char)(eType + 0x30);
            szLogBookEntry[12] = ')';
            szLogBookEntry[13] = '\0';
            eip_gci_loogbook_entry(&ptRsc->tStackInterface, szLogBookEntry);

      Write access the constant, read-only string szLogBookEntry behind its defined memory area causes an exception. Should rather be sth. like:

            char szLogBookEntry[14];
            memcpy(szLogBookEntry, "SvcCbNoRes(", 11);
            szLogBookEntry[11] = (char)(eType + 0x30);
            szLogBookEntry[12] = ')';
            szLogBookEntry[13] = '\0';
            eip_gci_loogbook_entry(&ptRsc->tStackInterface, szLogBookEntry);
      

        Attachments

          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: