← Commit list

6789eb0ff9

Daniel Stenberg
Daniel Stenberg
2026-02-26
SUCCESS Duration: 321s

Subject

multi: avoid a theoretical 32-bit wrap

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/multi.c+1 -1
@@ -3725,7 +3725,7 @@ CURL **curl_multi_get_handles(CURLM *m)
{
struct Curl_multi *multi = m;
void *entry;
- unsigned int count = Curl_uint32_tbl_count(&multi->xfers);
+ size_t count = Curl_uint32_tbl_count(&multi->xfers);
CURL **a = curlx_malloc(sizeof(struct Curl_easy *) * (count + 1));
if(a) {
unsigned int i = 0;