← Commit list

a6fcaf2958

x2018
x2018
2025-11-08
SUCCESS Duration: 152s

Subject

rtmp: precaution for a potential integer truncation

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/curl_rtmp.c+5 -0
@@ -256,6 +256,11 @@ static CURLcode rtmp_connect(struct Curl_easy *data, bool *done)
if(!r)
return CURLE_FAILED_INIT;
+ if(conn->sock[FIRSTSOCKET] > INT_MAX) {
+ /* The socket value is invalid for rtmp. */
+ return CURLE_FAILED_INIT;
+ }
+
r->m_sb.sb_socket = (int)conn->sock[FIRSTSOCKET];
/* We have to know if it is a write before we send the