← Commit list

d2c879da2

Denys Vlasenko
Denys Vlasenko
2009-12-11
FAILED Duration: 27s

Subject

wget: fix signedness in the compare (paranoia only, G.content_len is never < 0)

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 →

networking/wget.c+1 -1
@@ -462,7 +462,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp, int output_fd)
rdsz = sizeof(buf);
if (G.got_clen) {
- if (G.content_len < sizeof(buf)) {
+ if (G.content_len < (off_t)sizeof(buf)) {
if ((int)G.content_len <= 0)
break;
rdsz = (unsigned)G.content_len;