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

Use vector for pgp_dest_t cache #2299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

desvxx
Copy link
Contributor

@desvxx desvxx commented Dec 11, 2024

...and some related changes regarding pgp_dest_t construction

fixes #1782

@desvxx desvxx force-pushed the desvxx-1782-refactor-pgp_dest_t branch 3 times, most recently from 6c6d244 to ad98ec6 Compare December 11, 2024 00:48
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 67.56757% with 12 lines in your changes missing coverage. Please review.

Project coverage is 85.15%. Comparing base (9af62ce) to head (b0f47b6).

Files with missing lines Patch % Lines
src/librepgp/stream-common.cpp 76.19% 5 Missing ⚠️
src/librepgp/stream-write.cpp 50.00% 5 Missing ⚠️
src/librepgp/stream-armor.cpp 50.00% 1 Missing ⚠️
src/librepgp/stream-dump.cpp 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2299      +/-   ##
==========================================
- Coverage   85.17%   85.15%   -0.02%     
==========================================
  Files         118      118              
  Lines       22793    22804      +11     
==========================================
+ Hits        19413    19418       +5     
- Misses       3380     3386       +6     

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

@desvxx desvxx force-pushed the desvxx-1782-refactor-pgp_dest_t branch 3 times, most recently from c8f9f2a to 2254d36 Compare December 11, 2024 18:56
@desvxx desvxx force-pushed the desvxx-1782-refactor-pgp_dest_t branch from 2254d36 to b0f47b6 Compare January 31, 2025 20:54
}
/* allocate param */
dst->param = calloc(1, paramsize);
if (!dst->param) {
param = calloc(1, paramsize);

Check warning

Code scanning / CodeQL

Resource not released in destructor Warning

Resource param is acquired by class pgp_dest_t but not released anywhere in this class.
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.

Refactor pgp_dest_t to allocate cache on heap.
1 participant