Replace gets function
authorch79.cho <ch79.cho@samsung.com>
Wed, 28 Sep 2016 06:52:40 +0000 (15:52 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 28 Sep 2016 23:24:41 +0000 (23:24 +0000)
commit8fa93a1ffc9573776794a0ecda1c6abb1e90a70e
treecfc18a40eafb66bceae4cf3509c967b4f3f5cfe8
parent5a494b98d65b2950a9331ec77b03ce429ba64cde
Replace gets function

gets() function does not check for buffer length
and always results in a vulnerability.

Change-Id: I74abbe3f8a746513bb955455891ab1ca4746f1a7
Signed-off-by: ch79.cho <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12395
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 74ab7a7ff852baab940fd9367cf1b7dbd63a2369)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12465
service/notification/examples/linux/notificationconsumer.c