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

Fix NULL pointer dereference in __wt_panic_func()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0, WT11.1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      __wt_panic_func() should work if the caller passes in a NULL session handle. There are a pair of comments to this effect saying, "This function MUST handle a NULL WT_SESSION_IMPL handle." But the first line of the function is conn = S2C(session), causing it to segfault if given a NULL session handle.

      This problem manifested in WT-9643.

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            keith.smith@mongodb.com Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: