jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0ee0baf94e3c90c8b94c495e8a79df4c4e516cf6

commit 0ee0baf94e3c90c8b94c495e8a79df4c4e516cf6
Author: Jaehyun Cho <[email protected]>
Date:   Tue Sep 13 17:49:36 2016 +0900

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

-- 


Reply via email to