Fix issues detected by static analysis tool 30/74730/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 15 Jun 2016 09:51:22 +0000 (18:51 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 15 Jun 2016 09:53:53 +0000 (18:53 +0900)
commita03fe42de7fc3f70efe90c160585d95f4db11d2d
tree0b3563e1714e07416a3c9c6e5f2c08c83cbdf4cd
parent05234f801e977a40719c92b080e98f97aefe1d50
Fix issues detected by static analysis tool

Return value of a function 'find_ic' is dereferenced at wayland_panel_agent_module.cpp without checking, but it is usually checked for this function.
Buffer overflow is possible by index 'len' at scim_helper.cpp:1999, because 'readlink' may return 512.

Change-Id: I8966a69b150acb9778844e856a1e4695c68b0881
ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp
ism/src/scim_helper.cpp