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

Server crash when passed invalid JS in CodeWScope object

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.1.0
    • Component/s: JavaScript
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: