efl gfx_path: fix a crash case. 65/195665/1
authorHermet Park <hermetpark@gmail.com>
Mon, 17 Dec 2018 06:44:13 +0000 (15:44 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 17 Dec 2018 06:44:13 +0000 (15:44 +0900)
commite33c21fe3542589f8a6afd36e90226eb7d64defd
tree937282aac92c1acaf11b86c64fe577b64395f95c
parent836f24e2ba9b963f93dd50ca62ac74577be5e8a7
efl gfx_path: fix a crash case.

Here reserved size was not properly specified that interrupt realloc() size.

Some architecture may have 8 bytes for pointer type
but here path command actually 4 byte data.

Changed to specify the sizeof(Efl_Gfx_Path_Command and double)
instead of variable types(which is a pointer type) to make it work.

Change-Id: I3ace56d3066aa1168920fcbbc19e0c538fb9bdeb
src/lib/efl/interfaces/efl_gfx_path.c