Uploaded image for project: 'netX SPM USB'
  1. netX SPM USB
  2. NXSPMUSB-21

xSysdeviceFindFirstFile() does not check for last packet or packet length=0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V1.0.0.0, V1.2.0.0, V1.3.0.0, V1.4.0.0, V1.5.0.0, V1.6.0.0, V1.7.0.0, V1.7.0.1
    • Fix Version/s: V1.7.0.2
    • Component/s: Driver
    • Labels:
      None
    • Account:
      SUI User Tools Utilities (SUIUSERTOO)

      Description

      If no files exist on the device (not even "." and ".."), on a DIR_LIST request, xSysdeviceFindFirstFile() will not check for the RCX_PACKET_SEQ_LAST mask and it will not check for a packet length of 0. This will result in an answered packet with an empty string in szName.

      xSysdeviceFindFirstFile() should behave like xSysdeviceFindNextFile() and check ulExt for RCX_PACKET_SEQ_LAST or for check if ulLen = 0.

      Seen on netX90 where DIR_LIST uses raw flash areas for files.

        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: