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
}
/* 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.
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 64.10256% with 14 lines in your changes missing coverage. Please review.

Project coverage is 84.85%. Comparing base (bd601d5) to head (2254d36).

Files with missing lines Patch % Lines
src/librepgp/stream-common.cpp 69.56% 7 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   84.88%   84.85%   -0.04%     
==========================================
  Files         114      114              
  Lines       22785    22800      +15     
==========================================
+ Hits        19341    19346       +5     
- Misses       3444     3454      +10     

☔ 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 2 times, most recently from 2c2771f to c8f9f2a Compare December 11, 2024 18:55
@desvxx desvxx force-pushed the desvxx-1782-refactor-pgp_dest_t branch from c8f9f2a to 2254d36 Compare December 11, 2024 18:56
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