v8 heap allocation failure can lead to segfault

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 2.4.0
    • Component/s: JavaScript
    • None
    • Fully Compatible
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following functions may attempt to dereference an empty handle when v8 heap space is nearly depleted:

      • namedGet()
      • namedGetRO()
      • indexedGet()
      • indexedGetRO()
      • nativeCallback()

      This is because mongoToV8Element() does not check for allocation success nor OOM when creating a new JS object.

              Assignee:
              Unassigned
              Reporter:
              Ben Becker (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: