Skip to content

openssl: exit properly on OOM when getting certchain#19471

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/openssl-certchain
Closed

openssl: exit properly on OOM when getting certchain#19471
bagder wants to merge 1 commit into
masterfrom
bagder/openssl-certchain

Conversation

@bagder

@bagder bagder commented Nov 11, 2025

Copy link
Copy Markdown
Member

Previously, a momentary OOM error in the middle could produce a broken result instead of correctly returning error.

@bagder bagder added the TLS label Nov 11, 2025
@vszakats

vszakats commented Nov 11, 2025

Copy link
Copy Markdown
Member

Could I merge #18330 before this patch?
It'd avoid breaking that PR and a painful rebase, and it may make it easier
to tackle this patch.

@bagder

bagder commented Nov 11, 2025

Copy link
Copy Markdown
Member Author

A reasonable request. Sure! I will just make sure that this doesn't break any tests and keep it open here until after that PR merges.

@bagder bagder added the on-hold label Nov 12, 2025
Previously, a momentary OOM error in the middle could produce a broken
result instead of correctly returning error.
@bagder bagder force-pushed the bagder/openssl-certchain branch from d686de5 to fbfd97d Compare November 18, 2025 10:54
@bagder bagder removed the on-hold label Nov 18, 2025
@bagder bagder marked this pull request as ready for review November 18, 2025 10:54
@bagder bagder closed this in 833efb4 Nov 18, 2025
@bagder bagder deleted the bagder/openssl-certchain branch November 18, 2025 12:04
vszakats added a commit that referenced this pull request Dec 31, 2025
(Not tested in CI. Regression within this release cycle.)

Fixing:
```
lib/vtls/openssl.c:304:48: error: unused parameter 'data' [-Werror,-Wunused-parameter]
  304 | static CURLcode get_pkey_dsa(struct Curl_easy *data,
      |                                                ^
lib/vtls/openssl.c:305:40: error: unused parameter 'pubkey' [-Werror,-Wunused-parameter]
  305 |                              EVP_PKEY *pubkey, BIO *mem, int i)
      |                                        ^
lib/vtls/openssl.c:305:53: error: unused parameter 'mem' [-Werror,-Wunused-parameter]
  305 |                              EVP_PKEY *pubkey, BIO *mem, int i)
      |                                                     ^
lib/vtls/openssl.c:305:62: error: unused parameter 'i' [-Werror,-Wunused-parameter]
  305 |                              EVP_PKEY *pubkey, BIO *mem, int i)
      |                                                              ^
```

Follow-up to 833efb4 #19471

Closes #20127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants