← Commit list

df5bbb938

Denis Vlasenko
Denis Vlasenko
2007-04-05
FAILED Duration: 11s

Subject

diff: fix segfault on empty dirs (Peter Korsgaard )

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/diff.c+1 -1
@@ -1070,7 +1070,7 @@ static int add_to_dirlist(const char *filename,
static char **get_dir(char *path)
{
dl_count = 0;
- dl = NULL;
+ dl = xzalloc(sizeof(dl[0]));
/* If -r has been set, then the recursive_action function will be
* used. Unfortunately, this outputs the root directory along with