← Commit list

a3f4fd25d3

Daniel Stenberg
Daniel Stenberg
2025-12-07
SUCCESS Duration: 214s

Subject

http: return OOM errors from hsts properly

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/http.c+4 -1
@@ -3501,8 +3501,11 @@ static CURLcode http_header_s(struct Curl_easy *data,
if(v) {
CURLcode check =
Curl_hsts_parse(data->hsts, conn->host.name, v);
- if(check)
+ if(check) {
+ if(check == CURLE_OUT_OF_MEMORY)
+ return check;
infof(data, "Illegal STS header skipped");
+ }
#ifdef DEBUGBUILD
else
infof(data, "Parsed STS header fine (%zu entries)",