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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • 2.4.3, 2.5.0
    • 2.4.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

        1. clone_bson.js
          0.5 kB
          Ben Becker

        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: