Uploaded image for project: 'EtherNet/IP Firmware V3'
  1. EtherNet/IP Firmware V3
  2. PSEISV3-395

Writing invalid value to attribut 6 of TCP/IP Interface object (Hostname) is accepted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V3.4.0.0, V3.4.1.0
    • Fix Version/s: V3.4.0.6, V3.4.2.0, V3.5.0.0
    • Component/s: None
    • Labels:
      None
    • Account:
      SPC EthernetIp Slave (SPCETHERNE)

      Description

      The host name attribute 6 of the TCP/IP Interface object is of type STRING and has the following format:

      [ name lenght (2 bytes)] [ host name (1 byte per character) ]

      The maximum number of characters is limited to 64.

      In case of a write access to this attribute, the stack shall validate the incoming data before storing.

      One check is currently missing:
      The provided name length (first 2 bytes) shall match the number of actually provided hostname characters.

      So this should lead to a general status error 0x09 (Invalid attribute value):
        [04 00] ["NameTooLong"]
      The length indicates 4 characters, but the actual name is 11 characters long.

        Attachments

          Issue Links

            Expenses

              Activity

                Status Description

                  People

                  • Reporter:
                    KMichel Kai Michel
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: