Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9707

ensure strncpy() NULL terminates strings in SPIFFS code (avoid GCC 9.x warning)

    XMLWordPrintable

Details

    • Enhancement
    • Status: Implemented
    • Medium
    • Resolution: Implemented
    • TI Device Drivers
    • TIDRIVERS-4049
    • TIDRIVERS_4_40_00
    • TIDRIVERS_5_10_00
    • All

    Description

      The SPIFFS library has some questionable use of strncpy().  strncpy() does not guarantee NULL termination if the source string size is > than the destination string size.

      GCC 9.x generates a warning if it detects this possible mistake.  

      The SPIFFS code was updated to avoid this warning.

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: