Add integrity checks related to ScopedDebugInfo

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0, 8.3.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • v8.3
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Attempt to characterize the ScopedDebugInfoStack corruption in BF-42419 and mitigate damage by crashing early.

      • pre-reserve the stack's vector on construction
      • invariant: vector is empty when the stack is destroyed.
      • invariant: vector is nonempty when popping from it.
      • invariant: popped pointer should be identical to the pushed pointer.
      • Add counters: count pushes and pops per ScopedDebugInfoStack.
      • Invariant that pushes-pops==size. Consider making these scribble-evident with redundant negative counters.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: