Ensure CompileCtx::root is set before accessing it

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • QE 2021-12-27, QE 2022-01-10, QE 2022-01-24
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Before compiling an sbe::EExpression the caller is responsible for setting the root PlanStage on the CompileCtx. However, this is not enforced in any way. If the caller forgets to set it, this may result in a segfault. At the very least we should have an invariant that the root is set before dereferencing it, for example here.

            Assignee:
            Anna Wawrzyniak
            Reporter:
            Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: