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

Server crash when passed invalid JS in CodeWScope object

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.1.0
    • JavaScript
    • None
    • ALL

    Description

      If you pass uncompilable javascript into mongo via a CodeWScope BSON object, the server crashes. Compiling from a "Code" object has a NULL-check around compilation, but compiling from CodeWScope doesn't. Patch at https://gist.github.com/1080695 fixes.

      Attachments

        Activity

          People

            antoine Antoine Girbal
            osheroff Ben Osheroff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: