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

v8 heap allocation failure can lead to segfault

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

      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 Unassigned
            Reporter:
            benjamin.becker Ben Becker
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: