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

Review and fix WT_ASSERTs in packing_inline.h

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

      Some asserts in packing_inline.h can cause the whole program to crash (if WT_ASSERT is enabled) or ignore an error (if WT_ASSERT is disabled).

      In particular, WT_ASSERT(session, p <= end) in __wt_struct_unpackv() can cause a wrong behavior on incorrect input. It must be a run-time check returning an error rather than an "assert".

      Other uses of WT_ASSERT in this file should be reviewed too. Since these functions work with user-supplied input, they must handle garbage input appropriately.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            y.ershov@mongodb.com Yury Ershov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: