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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.4.3, 2.5.0
    • Affects Version/s: 2.4.0
    • Component/s: JavaScript
    • None
    • ALL

      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.

        1. clone_bson.js
          0.5 kB
          Ben Becker

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

              Created:
              Updated:
              Resolved: