diff options
author | wangkerong <44842104+wangkerong@users.noreply.github.com> | 2022-04-09 15:08:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 15:08:03 +0800 |
commit | 669c987709069340cd827b0238563732b63f213f (patch) | |
tree | ccf983d9355fa32b83ae930657b8306ab51d391b /libarchive | |
parent | 8694ac9984cefefaf7c4c8a14ba6e74fb7f24c17 (diff) | |
download | libarchive-669c987709069340cd827b0238563732b63f213f.tar.gz |
libarchive:uninitialized value
Uninitialized variable crash error in oss_fuzz memory type test
Diffstat (limited to 'libarchive')
-rw-r--r-- | libarchive/filter_fork_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/filter_fork_posix.c b/libarchive/filter_fork_posix.c index ac255c4f..62085a70 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; |