Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13908

Create safe version of strcpy in WiredTiger

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: APIs
    • Storage Engines
    • StorEng - Defined Pipeline

      The new error handling API (SPM-3810) requires each session to hold a dynamically allocated error string buffer that is overwritten during each session API call.

      It would be beneficial to have a safe version of strcpy (like we have for malloc, free, snprintf, etc.) available to use for copying strings, for this particular use case as well as for future use.

      This ticket will be considered done when there is a new function created:

      char *__wt_strcpy(char *dest, const char *src)

      that replicates the functionality of strcpy in a safe manner (i.e. no buffer overflow risk).

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            alex.pullen@mongodb.com Alex Pullen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: