summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-09-18 11:48:13 +0900
committerHermet Park <hermetpark@gmail.com>2018-09-18 11:48:27 +0900
commit8b17564c74860251a86dbcf76dfa2b07a57a4e0a (patch)
treef87bddc14700771dbd796153373056689afb5457 /src/lib/efl
parentf107ea24325c66ce5a2fcb7beb3947ebe77c66ef (diff)
efl gfx_path: prevent buffer overflow.
Summary: the counter must be less than 7, don't allow to over the index. @fix Reviewers: #committers Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7053
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c
index 036c35e6a6..cd948ddd3c 100644
--- a/src/lib/efl/interfaces/efl_gfx_path.c
+++ b/src/lib/efl/interfaces/efl_gfx_path.c
@@ -1235,7 +1235,7 @@ process_command(Eo *obj, Efl_Gfx_Path_Data *pd, char cmd, double *arr, int count
1235 case 'q': 1235 case 'q':
1236 case 't': 1236 case 't':
1237 { 1237 {
1238 for(i=0; i<count; i += 2) 1238 for(i = 0; i < count - 1; i += 2)
1239 { 1239 {
1240 arr[i] = arr[i] + *cur_x; 1240 arr[i] = arr[i] + *cur_x;
1241 arr[i+1] = arr[i+1] + *cur_y; 1241 arr[i+1] = arr[i+1] + *cur_y;