__pack_encode_WT_ITEM fails on ASAN builds

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • WT11.3.0, 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines
    • None
    • None

      If a WT_ITEM is empty, then the ->data is NULL. In this case this line fails with address sanitizer:

          memcpy(*pp, item->data, item->size);
      

      It can't cause any issues in production since ->size is zero too.

              Assignee:
              Yury Ershov
              Reporter:
              Yury Ershov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: