diff options
author | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2016-09-13 17:49:36 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2016-09-13 17:49:36 +0900 |
commit | 0ee0baf94e3c90c8b94c495e8a79df4c4e516cf6 (patch) | |
tree | 5865071c702f617a7641d29288a9ad77b56d990d | |
parent | 6766ae57a73789dec22a7051f190ab3c06bf328b (diff) | |
download | efl-0ee0baf94e3c90c8b94c495e8a79df4c4e516cf6.tar.gz |
edje: Fix memory overflow on svg loader.
Initialize temporary index not to cause memory overflow on svg loader.
-rw-r--r-- | src/bin/edje/edje_svg_loader.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/edje/edje_svg_loader.c b/src/bin/edje/edje_svg_loader.c index 63aa4efd91..1b23913a49 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; } } |