From: wangkerong <44842104+wangkerong@users.noreply.github.com> Date: Sat, 9 Apr 2022 07:08:03 +0000 (+0800) Subject: libarchive:uninitialized value X-Git-Tag: v3.6.2~26^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1721%2Fhead;p=thirdparty%2Flibarchive.git libarchive:uninitialized value Uninitialized variable crash error in oss_fuzz memory type test --- diff --git a/libarchive/filter_fork_posix.c b/libarchive/filter_fork_posix.c index ac255c4f8..62085a709 100644 --- a/libarchive/filter_fork_posix.c +++ b/libarchive/filter_fork_posix.c @@ -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;