[gegl/wip/rishi/operation-shadhi] gegl: make chain parser a bit more resilient
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/wip/rishi/operation-shadhi] gegl: make chain parser a bit more resilient
- Date: Sat, 11 Nov 2017 14:56:01 +0000 (UTC)
commit 805befc8aab940e7f43e65eef287d22b5a147651
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Nov 10 18:14:26 2017 +0100
gegl: make chain parser a bit more resilient
This stops the following from causing a segfault, withotu changing any
meaningful behavior.
14:46 < tmanni> try: $ gegl input.jpg -o output.png -- threshold aux=]
14:46 < tmanni> boom
gegl/gegl-serialize.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-serialize.c b/gegl/gegl-serialize.c
index d112387..9a5b7da 100644
--- a/gegl/gegl-serialize.c
+++ b/gegl/gegl-serialize.c
@@ -574,7 +574,7 @@ gegl_create_chain_argv (char **ops,
}
}
g_free (key);
- if (end_block)
+ if (end_block && level >0)
{
level--;
gegl_node_connect_to (iter[level+1], "output", iter[level],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]