Fix prevent issues 98/49398/2
authorYoumin Ha <youmin.ha@samsung.com>
Mon, 12 Oct 2015 13:04:39 +0000 (22:04 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Tue, 13 Oct 2015 06:17:02 +0000 (15:17 +0900)
commit9bfa062b34d91079fcb91380fff24745071a72f2
tree7fd734668c4c4020ebe777e94aabcf437f578ca4
parentc73bbeb35455d8a7461c7e7df5f84a96faabcabe
Fix prevent issues

This commit fixes following prevent CIDs:
 * 458876: Avoid copying string which cannot be null-terminated
 * 459717: NULL-check after memory allocation
 * 461686: NULL-check tainted scalar(string read by fgets())
 * 462630: NULL-check after memory allocation
 * 466499: NULL-check after memory allocation
 * 470326: NULL-check after memory allocation
 * 471806: NULL-check after memory allocation
 * 472387: NULL-check after memory allocation
 * 475993: NULL-check after memory allocation

Change-Id: Ie33494a2055528ae1c8b8ffb296a2111c3468e95
src/common/tlm-utils.c
src/daemon/tlm-seat.c
src/utils/tlm-launcher.c