Skip to content

CRL: fix memory allocation failure leaks#8499

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:crl_list_fix
Feb 25, 2025
Merged

CRL: fix memory allocation failure leaks#8499
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:crl_list_fix

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

On memory allocation failure, some functions were leaking memory.

Also add reference counting to CRL object so that a deep copy of a list of CRLs doesn't leak memory.
The test was explicitly freeing each CRL in the list.

Testing

./configure '--disable-shared' '--enable-crl' '--enable-opensslall'
/test_X509_STORE_get0_objects was explicitly freeing the deep copied list.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

On memory allocation failure, some functions were leaking memory.

Also add reference counting to CRL object so that a deep copy of a list
of CRLs doesn't leak memory.
The test was explicitly freeing each CRL in the list.
@SparkiDev
Copy link
Copy Markdown
Contributor Author

retest this please

hudson

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Feb 25, 2025
@dgarske dgarske merged commit bac6771 into wolfSSL:master Feb 25, 2025
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.

3 participants