evas: fix for sscanf use with save flags input.
authorGodly T.Alias <godlytalias@yahoo.co.in>
Fri, 6 Oct 2017 16:48:28 +0000 (09:48 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 6 Oct 2017 16:49:03 +0000 (09:49 -0700)
commit10f26f143a4e3404557a223ebfefba94e80cbd3f
tree0b0b361538aa7962e66688384086f55519bae6a5
parentbc2fe6bb778b559e6c88f836d8cbdfb631b193b4
evas: fix for sscanf use with save flags input.

Summary:
As 'flags' can be supplied by application, in case application is supplying
a big string(error case), it can cause crash in some version of glibc.

Setting maximum possible input (0x64) length as width specifier

Fix for static code analyzer warnings
- scanf without field width limits can crash with huge input data on some versions of libc

Signed-off-by: Godly T.Alias <godlytalias@yahoo.co.in>
Test Plan: Run SonarQube

Reviewers: cedric, raster, Princekrdubey, rajeshps

Reviewed By: cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D5266

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/evas/canvas/evas_object_image.c