[Prevent] Fix prevent issue 2.2_release submit/tizen_2.2/20130714.151528
authorwootak.jung <wootak.jung@samsung.com>
Thu, 27 Jun 2013 01:17:40 +0000 (10:17 +0900)
committerwootak.jung <wootak.jung@samsung.com>
Thu, 27 Jun 2013 11:50:31 +0000 (20:50 +0900)
commit38e388cc8b91acc6d23a58fb5863ec357dd6e6d9
tree024c864e91bc8cb508eb3b79d34f58faa0bb449f
parentc03cb7d9ef0b0de9b3745d2f0629b7d4b6f63db4
[Prevent] Fix prevent issue

- src/co_call.c: buffer_size_warning
Calling strncpy with a maximum size argument of 83 bytes on destination
array "co->cna.name" of size 83 bytes might leave the destination string
unterminated.

- src/co_call.c: dead_error_line
Execution cannot reach this statement "continue;".

- src/co_sat.c: check_after_deref
Null-checking "address" suggests that it may be null, but it has already
been dereferenced on all paths leading to the check.

- src/at.c: suspicious_sizeof
Passing argument "at->resp" of type "TcoreATResponse *" and argument
"4 /* sizeof (TcoreATResponse *) */" to function "tcore_pending_emit_
response_callback(TcorePending *, int, void const *)" is suspicious.
Did you intend to use "sizeof(TcoreATResponse)" instead of "sizeof
(TcoreATResponse *)" ?

Change-Id: Ic5fd98b57b2cca40da80f74a5e3415974287e56a
packaging/libtcore.spec
src/at.c
src/co_call.c
src/co_sat.c