edje: Fix memory overflow on svg loader.

Initialize temporary index not to cause memory overflow on svg loader.
This commit is contained in:
Jaehyun Cho 2016-09-13 17:49:36 +09:00
parent 6766ae57a7
commit 0ee0baf94e
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}