25 lines
779 B
Diff
25 lines
779 B
Diff
From 1ab606af27d6b3fa07a638b7f04efadbc8ef75b4 Mon Sep 17 00:00:00 2001
|
|
From: zhangnaru <zhangnaru@huawei.com>
|
|
Date: Tue, 28 Jul 2020 15:05:03 +0800
|
|
Subject: [PATCH] there need to add the init of child to solve the
|
|
problem in oss-fuzz
|
|
---
|
|
libarchive/filter_fork_posix.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libarchive/filter_fork_posix.c b/libarchive/filter_fork_posix.c
|
|
index ac255c4..62085a7 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;
|
|
--
|
|
2.23.0
|