]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
libarchive:uninitialized value 1721/head
authorwangkerong <44842104+wangkerong@users.noreply.github.com>
Sat, 9 Apr 2022 07:08:03 +0000 (15:08 +0800)
committerGitHub <noreply@github.com>
Sat, 9 Apr 2022 07:08:03 +0000 (15:08 +0800)
Uninitialized variable crash error in oss_fuzz memory type test

libarchive/filter_fork_posix.c

index ac255c4f8b202fbcefcd0d90884a1ad325f01ec3..62085a7099b7de8378871851e8c367328b8939c0 100644 (file)
@@ -76,7 +76,7 @@ int
 __archive_create_child(const char *cmd, int *child_stdin, int *child_stdout,
                pid_t *out_child)
 {
-       pid_t child;
+       pid_t child = -1;
        int stdin_pipe[2], stdout_pipe[2], tmp;
 #if HAVE_POSIX_SPAWNP
        posix_spawn_file_actions_t actions;