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

Limit recursive v8 conversion functions to prevent stack overflow

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • JavaScript, Security
    • None
    • Fully Compatible
    • Build 7 08/10/15, Build 8 08/31/15

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: