← Commit list

adb1c7dcf

Denys Vlasenko
Denys Vlasenko
2023-01-02
SUCCESS Duration: 311s

Subject

xxd: fix use of non-initialized data

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 →

util-linux/hexdump_xxd.c+2 -1
@@ -229,7 +229,8 @@ int xxd_main(int argc UNUSED_PARAM, char **argv)
{
char buf[80];
dumper_t *dumper;
- char *opt_l, *opt_s, *opt_o;
+ char *opt_l, *opt_o;
+ char *opt_s = NULL;
unsigned bytes = 2;
unsigned cols = 0;
unsigned opt;