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

realloc_func should use standard overwrite and free macros

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT11.2.0
    • Affects Version/s: None
    • Component/s: None
    • None

      In WT-9903, a debug mode was added to allocate new memory on every realloc call to realloc_func. In that change, code was added to copy to the new memory, overwrite the old memory and then free it. That code should use the standard wt_overwrite_and_free* family of macros to replace this code:

              memset((uint8_t *)tmpp, WT_DEBUG_BYTE, bytes_allocated);
              free(tmpp);
      

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso (Inactive)
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: