Skip to content

Guard against crash when sk_CRYPTO_BUFFER_new_null() returns NULL - #1007

Merged
normanmaurer merged 1 commit into
mainfrom
return_early
Aug 31, 2026
Merged

Guard against crash when sk_CRYPTO_BUFFER_new_null() returns NULL#1007
normanmaurer merged 1 commit into
mainfrom
return_early

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Motivation:

When out of memory sk_CRYPTO_BUFFER_new_null() will return NULL, so we should better guard against it as otherwise we might crash

Modifications:

Check for NULL and handle it

Result:

More robust code even when out of memory

Motivation:

When out of memory sk_CRYPTO_BUFFER_new_null() will return NULL, so we should better guard against it as otherwise we might crash

Modifications:

Check for NULL and handle it

Result:

More robust code even when out of memory
@normanmaurer normanmaurer added this to the 2.0.84.Final milestone Aug 31, 2026
@normanmaurer
normanmaurer merged commit 0c5069f into main Aug 31, 2026
17 checks passed
@normanmaurer
normanmaurer deleted the return_early branch August 31, 2026 14:20
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.

1 participant