Limit recursive v8 conversion functions to prevent stack overflow

XMLWordPrintableJSON

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

      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
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: