Skip to content

RUST-1545 Consider removing the take_mut dependency #776

Open
@seanpianka

Description

@seanpianka

Versions/Environment

  1. What version of Rust are you using?
    Rust 1.65
  2. What operating system are you using?
    N/A
  3. What versions of the driver and its dependencies are you using? (Run
    cargo pkgid mongodb & cargo pkgid bson)
    Driver v2.3.1
  4. What version of MongoDB are you using? (Check with the MongoDB shell using db.version())
    N/A
  5. What is your MongoDB topology (standalone, replica set, sharded cluster, serverless)?
    N/A

Describe the bug

There is a potential memory leak in take_mut, which I noted from 2 issues filed with cargo-crev. A pull request with a fix was opened several years ago and it hasn't been merged yet, so the repository might also be rightly considered abandoned.

Is this dependency necessary? Something to consider, as it also uses unproven unsafe code.

https://github.com/yvt/crev-proofs and https://github.com/vorner/crev-proofs both reported issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tracked-in-jiraTicket filed in Mongo's Jira system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions