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)
Wed, Nov 13, 10:44 AM
Unknown Object (File)
Sat, Nov 2, 7:20 AM
Unknown Object (File)
Sat, Nov 2, 7:20 AM
Unknown Object (File)
Sat, Nov 2, 7:20 AM
Unknown Object (File)
Sat, Nov 2, 7:20 AM
Unknown Object (File)
Sat, Nov 2, 7:09 AM
Unknown Object (File)
Thu, Oct 17, 6:53 AM
Unknown Object (File)
Oct 16 2024, 8: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
Branch
cryptopp
Lint
No Lint Coverage
Unit
No Test Coverage

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.