← Commit list

b7077a731

Eric Andersen
Eric Andersen
2003-11-03
FAILED Duration: 86s

Subject

Set unset_env pointing to a NULL item, to prevent us from walking off the end of the list and segfaulting. -Erik

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/env.c+5 -1
@@ -62,9 +62,13 @@ extern int env_main(int argc, char** argv)
char **ep, *p;
char *cleanenv[1] = { NULL };
unsigned long opt;
- llist_t *unset_env;
+ llist_t list, *unset_env;
extern char **environ;
+ list.data = NULL;
+ list.link = NULL;
+ unset_env = &list;
+
bb_opt_complementaly = "u*";
bb_applet_long_options = env_long_options;