← Commit list

58f071dbe4

Daniel Stenberg
Daniel Stenberg
2025-09-19
FAILED Duration: 149s

Subject

tool_getparam/set_rate: skip the multiplication on overflow

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 →

src/tool_getparam.c+3 -2
@@ -1012,8 +1012,9 @@ static ParameterError set_rate(const char *nextarg)
errorf("too large --rate unit");
err = PARAM_NUMBER_TOO_LARGE;
}
- /* this typecast is okay based on the check above */
- numerator *= (long)numunits;
+ else
+ /* this typecast is okay based on the check above */
+ numerator *= (long)numunits;
}
if(err)