← Commit list

956e1ae84f

Daniel Stenberg
Daniel Stenberg
2026-02-24
SUCCESS Duration: 326s

Subject

setopt: refuse blobs with zero length

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/setopt.c+1 -1
@@ -107,7 +107,7 @@ CURLcode Curl_setblobopt(struct curl_blob **blobp,
if(blob) {
struct curl_blob *nblob;
- if(blob->len > CURL_MAX_INPUT_LENGTH)
+ if(!blob->len || (blob->len > CURL_MAX_INPUT_LENGTH))
return CURLE_BAD_FUNCTION_ARGUMENT;
nblob = (struct curl_blob *)
curlx_malloc(sizeof(struct curl_blob) +