Fix issues detected by static analysis tool 53/77253/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 29 Jun 2016 07:46:34 +0000 (16:46 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 29 Jun 2016 07:47:28 +0000 (16:47 +0900)
commit9b647baa310411d7555954a7b72bac180ab1a4ba
tree1d777dba439a04a5fa19d36868ee79296e0fd00e
parente96c8fa8e20bf525f1c47dd7635ee1f38584b6d6
Fix issues detected by static analysis tool

Buffer overflow is possible by index 'len' at wayland_panel_agent_module.cpp:2757, because 'readlink' may return 512. Function call at wayland_panel_agent_module.cpp:2750.
Buffer overflow is possible by index 'len' at wayland_panel_agent_module.cpp:2875, because 'readlink' may return 512. Function call at wayland_panel_agent_module.cpp:2868.
Pointer 'context_scim' which was dereferenced at wayland_panel_agent_module.cpp:1343 is compared to NULL value at wayland_panel_agent_module.cpp:1384.

Change-Id: Ib3acaaac112e1ce9dfc717a316804def2cc83327
ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp