← Commit list

feab390124

Joshua Rogers
Joshua Rogers
2025-11-03
SUCCESS Duration: 141s

Subject

rtsp: use explicit postfieldsize if specified

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/rtsp.c+2 -1
@@ -298,7 +298,8 @@ static CURLcode rtsp_setup_body(struct Curl_easy *data,
}
else {
if(data->set.postfields) {
- size_t plen = strlen(data->set.postfields);
+ size_t plen = (data->set.postfieldsize >= 0) ?
+ (size_t)data->set.postfieldsize : strlen(data->set.postfields);
req_clen = (curl_off_t)plen;
result = Curl_creader_set_buf(data, data->set.postfields, plen);
}