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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-2199 - ensure strncpy() NULL terminates st...
                SYNCHRONIZED
                • Last Sync Date: