gegl: in gegl-serialize avoid negative array on index on malformed input

Avoid crash that happens when ] brackets are present without first
having a proper opening bracket.
parent 08206bb4
Pipeline #180283 passed with stages
in 14 minutes and 23 seconds
......@@ -370,6 +370,7 @@ gegl_create_chain_argv (char **argv,
else if (!strchr(*arg, '=') && strchr (*arg, ']'))
{
level--;
if (level < 0) level = 0;
gegl_node_connect_to (iter[level+1], "output", iter[level],
level_pad[level]);
}
......
......@@ -41,7 +41,7 @@ property_enum (neighborhood, _("Neighborhood"),
description (_("Neighborhood type"))
property_int (radius, _("Radius"), 3)
value_range (-100, 100)
value_range (-400, 400)
ui_range (0, 100)
ui_meta ("unit", "pixel-distance")
description (_("Neighborhood radius, a negative value will calculate with inverted percentiles"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment