[gimp] app: verify input argumets in gimp_spawn_async()
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: verify input argumets in gimp_spawn_async()
- Date: Mon, 5 Mar 2018 07:57:29 +0000 (UTC)
commit 95af939903cbc9d7ba94d6b4cbb8a779db2539f5
Author: Ell <ell_se yahoo com>
Date: Mon Mar 5 02:54:42 2018 -0500
app: verify input argumets in gimp_spawn_async()
app/core/gimp-spawn.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimp-spawn.c b/app/core/gimp-spawn.c
index 0bfc46f..7fcb093 100644
--- a/app/core/gimp-spawn.c
+++ b/app/core/gimp-spawn.c
@@ -155,6 +155,8 @@ gimp_spawn_async (gchar **argv,
GPid *child_pid,
GError **error)
{
+ g_return_val_if_fail (argv != NULL, FALSE);
+
#ifdef HAVE_VFORK
if (flags == (G_SPAWN_LEAVE_DESCRIPTORS_OPEN |
G_SPAWN_DO_NOT_REAP_CHILD |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]