Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean memory #868

Merged
merged 5 commits into from
Jun 26, 2019
Merged

Clean memory #868

merged 5 commits into from
Jun 26, 2019

Conversation

shargon
Copy link
Member

@shargon shargon commented Jun 26, 2019

Usually we clean the buffer where the private key was copied, as here

Array.Clear(data, 0, data.Length);

But we forgot to clean these buffers.

@shargon shargon requested a review from erikzhang June 26, 2019 06:13
@codecov-io
Copy link

Codecov Report

Merging #868 into master will decrease coverage by <.01%.
The diff coverage is 42.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #868      +/-   ##
==========================================
- Coverage   43.57%   43.57%   -0.01%     
==========================================
  Files         177      177              
  Lines       12547    12552       +5     
==========================================
+ Hits         5467     5469       +2     
- Misses       7080     7083       +3
Impacted Files Coverage Δ
neo/Cryptography/Base58.cs 40% <0%> (-1.03%) ⬇️
neo/Cryptography/Helper.cs 26.22% <50%> (+0.8%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31bee40...b60c10c. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Jun 26, 2019

Codecov Report

Merging #868 into master will decrease coverage by 0.02%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #868      +/-   ##
==========================================
- Coverage   43.57%   43.54%   -0.03%     
==========================================
  Files         177      177              
  Lines       12547    12559      +12     
==========================================
+ Hits         5467     5469       +2     
- Misses       7080     7090      +10
Impacted Files Coverage Δ
neo/Wallets/Wallet.cs 48.47% <0%> (-1.18%) ⬇️
neo/Cryptography/Base58.cs 40% <0%> (-1.03%) ⬇️
neo/Cryptography/Helper.cs 26.22% <50%> (+0.8%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31bee40...7c369e9. Read the comment docs.

neo/Wallets/Wallet.cs Outdated Show resolved Hide resolved
@shargon shargon merged commit 897df9c into neo-project:master Jun 26, 2019
@shargon shargon deleted the clean-memory branch June 26, 2019 11:02
Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shargon
Copy link
Member Author

shargon commented Dec 16, 2019

@vncoelho I think that we need to port this to 2x, do you want to do it?

Thacryba pushed a commit to simplitech/neo that referenced this pull request Feb 17, 2020
Tommo-L pushed a commit to Tommo-L/neo that referenced this pull request Jun 22, 2020
* Clean memory

* Other

* Other

* Update Wallet.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants