27 lines
848 B
Diff
27 lines
848 B
Diff
From 741b491fe63fd5848b6ce4a3c09ec9a16bac9f6b Mon Sep 17 00:00:00 2001
|
|
From: songnannan2 <songnannan2@huawei.com>
|
|
Date: Tue, 18 Feb 2020 22:16:04 +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 02dbd4b..285dd48 100644
|
|
--- a/libarchive/filter_fork_posix.c
|
|
+++ b/libarchive/filter_fork_posix.c
|
|
@@ -75,7 +75,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/filter_fork.c 182958 2008-09-12 05:33:00
|
|
pid_t
|
|
__archive_create_child(const char *cmd, int *child_stdin, int *child_stdout)
|
|
{
|
|
- 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.19.1
|
|
|