From 0ee0baf94e3c90c8b94c495e8a79df4c4e516cf6 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Tue, 13 Sep 2016 17:49:36 +0900 Subject: [PATCH] edje: Fix memory overflow on svg loader. Initialize temporary index not to cause memory overflow on svg loader. --- src/bin/edje/edje_svg_loader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/edje/edje_svg_loader.c b/src/bin/edje/edje_svg_loader.c index 63aa4ef..1b23913 100644 --- a/src/bin/edje/edje_svg_loader.c +++ b/src/bin/edje/edje_svg_loader.c @@ -1114,6 +1114,7 @@ _attr_parse_polygon_points(const char *str, double **points, int *point_count) point_array = realloc(point_array, (count + tmp_count) * sizeof(double)); memcpy(&point_array[count], tmp, tmp_count * sizeof(double)); count += tmp_count; + tmp_count = 0; } } -- 2.7.4