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

Limit recursive v8 conversion functions to prevent stack overflow

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: JavaScript, Security
    • Labels:
      None
    • Fully Compatible
    • Build 7 08/10/15, Build 8 08/31/15

      mongoToLZV8, v8ToMongoElement and related are recursive functions, but they do not currently have a way to specify a maximum recursion depth. This can lead to a segv if a deeply nested object is converted; e.g. in a MapReduce function.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: