Fix static analysis issue 58/128258/2 accepted/tizen/unified/20170510.013102 submit/tizen/20170508.093623 tizen_4.0.m1_release
authorHyeongsik Min <hyeongsik.min@samsung.com>
Mon, 8 May 2017 07:57:34 +0000 (16:57 +0900)
committerHyeongsik Min <hyeongsik.min@samsung.com>
Mon, 8 May 2017 08:48:00 +0000 (17:48 +0900)
commit6d9ab58100c91e75c5416f9f6cecbba0e1efc989
treeae500e67628bb175e094aba1dfe7442a01ae2d5d
parent9b5bf40c2f83fd615152523bc3bc8009fae23dbc
Fix static analysis issue

- UNREACHABLE_CODE at peripheral_bus_gpio.c:254
- INTEGER_OVERFLOW in adc_get_device_name()
  This patch makes the function allocate buffer for the name of adc device
  node instead of just copying strings to buffer passed through argument.

Change-Id: If5d137a846ca5727b3d2cb00f4a2b6d313abf75f
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
src/daemon/peripheral_bus_gpio.c
src/interface/adc.c
src/interface/include/adc.h