Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1789

Do not use new Buffer in bson@1

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-1.1.1
    • Affects Version/s: 3.1.10
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      bson@1 uses the deprecated new Buffer() constructor.

      This are a) a security risk and b) slower on 10+.

       

      I would recommend to switch to safe-buffer and use the new methods

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            mcollina Matteo Collina
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: