Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-64002

Consistently disallow out-of-bounds access to the children vector of MatchExpressions

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • QO 2022-06-27, QO 2022-07-11, QO 2022-07-25

    Description

      Right now, different subclasses of `MatchExpression` have different failure behavior for the `getChild(size_t index)` function. Some have an invariant, while some will blindly pass on the out-of-bounds index to the underlying vector, which will result in a segfault. This behavior should be standardized, either with invariant (what some do currently) or tassert (probably makes more sense, no reason to crash the whole server in this case).

      Attachments

        Activity

          People

            lynne.wang@mongodb.com Lynne Wang
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: