← Commit list

4575bbf7b

Eric Andersen
Eric Andersen
2004-02-04
FAILED Duration: 76s

Subject

The variable 'complementaly' used to be allocated with calloc, which zeroed it out during the allocation process. When vodz changed it to be allocated on the stack, he forgot to explicitly zero it, leaving its value filled with whatever used to be sitting on the stack. It would garbage values, dep

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 →

libbb/getopt_ulflags.c+2 -0
@@ -88,6 +88,8 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...)
t_complementaly *on_off;
va_list p;
+ memset(&complementaly, 0, sizeof(complementaly));
+
va_start (p, applet_opts);
/* skip GNU extension */