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

'Cloning' a document in JavaScript can create an empty _bson field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 2.4.0
    • 2.4.3, 2.5.0
    • JavaScript
    • None
    • ALL

    Description

      When a document is 'cloned' in JavaScript, or if a field named '_bson' is created on a JS object passed to an internal mongo function, unwrapHolder() may return a NULL pointer. This is unchecked at most call-sites.

      Attachments

        Issue Links

          Activity

            People

              mathias@mongodb.com Mathias Stearn
              benjamin.becker Ben Becker
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: