Add code to check the return value of calloc 59/139259/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 18 Jul 2017 06:24:22 +0000 (15:24 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 18 Jul 2017 06:24:24 +0000 (15:24 +0900)
commit02510eeb296633a0aaf0db9fba656e7671aea28b
treee42513180f7eeeb787f3881a5f8d18190cdc7323
parentae2e2b12b1f37e003865a701dca76ed41f476dc8
Add code to check the return value of calloc

Pointer 'preedit_attr' returned from function 'calloc' at ise.cpp:431 may be null,
and it is dereferenced at ise.cpp:432.

Change-Id: Ic1f60aee84f567ba8ac22ef00ebcf2de6c879fc6
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp