← Commit list

60f484346

Denys Vlasenko
Denys Vlasenko
2021-08-23
SUCCESS Duration: 158s

Subject

shuf: with -i LOW-HIGH, do not allow any argv's

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 →

coreutils/shuf.c+3 -0
@@ -92,6 +92,9 @@ int shuf_main(int argc, char **argv)
char *dash;
unsigned lo, hi;
+ if (argv[0])
+ bb_show_usage();
+
dash = strchr(opt_i_str, '-');
if (!dash) {
bb_error_msg_and_die("bad range '%s'", opt_i_str);