← Commit list

563ac6e78

Glenn L McGrath
Glenn L McGrath
2002-11-01
FAILED Duration: 6s

Subject

Report errror if the first magic character doesnt match

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 →

archival/gunzip.c+3 -0
@@ -169,6 +169,7 @@ extern int gunzip_main(int argc, char **argv)
magic2 = xread_char(src_fd);
#ifdef CONFIG_FEATURE_UNCOMPRESS
if (magic2 == 0x9d) {
+ printf("uncompress\n");
return(uncompress(src_fd, dst_fd));
} else
#endif
@@ -182,6 +183,8 @@ extern int gunzip_main(int argc, char **argv)
} else {
error_msg_and_die("Invalid magic\n");
}
+ } else {
+ error_msg_and_die("Invalid magic\n");
}
if ((status != EXIT_SUCCESS) && (new_path)) {