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

v8 heap allocation failure can lead to segfault

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Gone away
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      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

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

                Dates

                Created:
                Updated:
                Resolved: