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

v8 heap allocation failure can lead to segfault

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Gone away
    • 2.4.0
    • None
    • JavaScript
    • None
    • Fully Compatible
    • ALL

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              benjamin.becker Ben Becker
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: