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

__pack_encode_WT_ITEM fails on ASAN builds

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

      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:
            y.ershov@mongodb.com Yury Ershov
            Reporter:
            y.ershov@mongodb.com Yury Ershov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: