Page MenuHomePhabricator

[services][refactoring] Tunnelbroker - Remove unique pointers from CryptoTools.
ClosedPublic

Authored by max on Feb 12 2022, 11:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 24, 1:47 PM
Unknown Object (File)
Sun, Sep 15, 3:37 AM
Unknown Object (File)
Sun, Sep 15, 3:37 AM
Unknown Object (File)
Sun, Sep 15, 3:37 AM
Unknown Object (File)
Sun, Sep 15, 3:37 AM
Unknown Object (File)
Sun, Sep 15, 3:30 AM
Unknown Object (File)
Sat, Sep 14, 5:10 AM
Unknown Object (File)
Aug 29 2024, 9:25 AM

Details

Summary

We are aware of memory leaks using the new allocation for the cryptoPP classes and used unique pointers and release().
According to the CryptoPP pipeline documentation, we don't need to free the memory manually and can switch to the new approach because using unique pointers and release() have no makes sense here.

Related linear task: ENG-627

Test Plan

Successfully built the server and verify the string by the rsaVerifyString function.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 14 2022, 6:01 AM
This revision now requires review to proceed.Feb 14 2022, 6:01 AM
ashoat added a reviewer: jim.

Awesome, thanks for following up on this. Making and then releasing a unique_ptr never made sense to me...

This revision is now accepted and ready to land.Feb 14 2022, 8:54 PM
This revision was landed with ongoing or failed builds.Feb 15 2022, 11:51 AM
This revision was automatically updated to reflect the committed changes.