Uploaded image for project: 'netX Transport Toolkit'
  1. netX Transport Toolkit
  2. NXTTKIT-49

Wrong channel ID passed to ReadChannelFirmware()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V1.0.4.0, V1.0.5.0, V1.1.0.0
    • Fix Version/s: V1.2.0.0
    • Component/s: Toolkit Source
    • Labels:
      None
    • Account:
      SDO Transport, Diagnostic (SDOTRANSPO)

      Description

      A bug introduced in NXTTKIT-39 passed the wrong channel-ID to the function ReadChannelFirmware(). This resulted later on in an access to uninitialized (already freed) memory and a subsequent crash.

      Instead of passing RCXPACKET_SYSTEMCHANNEL_INTERNAL(0) the value HIL_SYSTEM_CHANNEL(0xffffffff) should be passed to ReadChannelFirmware().

      Furthermore, OS_Memset() is executed on allocated memory without checking first if the allocation was successful.

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  AMinor Alexander Minor
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: