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

[nasa/cryptolib#211] Modify sadb_get_sa_from_spi. Unnecessary NULL #238

Merged
merged 1 commit into from
May 2, 2024

Conversation

rjbrown2
Copy link
Contributor

#184
The unnecessary reference to a null SA has been removed.

The function has been reworked to work better (more correctly) with the new internal SA setup.

The previous memory leak referenced by this issue has been removed already. We no longer calloc the arsn or iv within the internal sa in this manner.

Consider when reviewing this, if we should modify the character pointers within our SAs to be a set array length. (This would also aid in more easily saving those values in the upcoming save/load capabilities.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.94%. Comparing base (58f82ff) to head (d28cb6e).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #238   +/-   ##
=======================================
  Coverage   73.94%   73.94%           
=======================================
  Files           8        8           
  Lines        2905     2905           
  Branches      459      459           
=======================================
  Hits         2148     2148           
  Misses        583      583           
  Partials      174      174           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rjbrown2 rjbrown2 merged commit 318c371 into dev May 2, 2024
5 checks passed
@rjbrown2 rjbrown2 deleted the 211-sa-ptr-memory-leak-pr branch May 2, 2024 15:59
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.

5 participants