@nodejs/crypto
This may cause a crash, as different smart pointers may try to delete the raw pointer twice.
In node::crypto::ManagedX509::operator =(node::crypto::ManagedX509 const &): Same raw pointer is used to initialize or reset two or more different smart pointers.

|
ManagedX509& ManagedX509::operator=(const ManagedX509& that) { |
|
cert_.reset(that.get()); |
|
if (cert_) [[likely]] |
|
X509_up_ref(cert_.get()); |
|
return *this; |
|
} |
@nodejs/crypto
node/src/crypto/crypto_x509.cc
Lines 57 to 62 in a08129c