[svace/iio] security fixes related to sscanf
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 26 Sep 2019 03:03:23 +0000 (12:03 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 26 Sep 2019 06:29:40 +0000 (15:29 +0900)
commitdb96d34c0ecd9b5061781caf60dcb474a1ba73f2
tree03e2dd2fc06cac048061b75942cada4744f94c83
parentfa2c34ce35fc5fd0bb124e99ec8e524fa162145b
[svace/iio] security fixes related to sscanf

1. Fix security issue related with sscanf. Use g_ascii_str instead
Issue: WID:7938408 Use of vulnerable function 'sscanf' at tensor_src_iio.c:690. This function is unsafe.
Issue: WID:7938409 Use of vulnerable function 'sscanf' at tensor_src_iio.c:723. This function is unsafe.
2. Add comments for switch cases where breaks have been skipped
Issue: Missing break in the switch case

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
gst/nnstreamer/tensor_source/tensor_src_iio.c
tests/nnstreamer_source/unittest_src_iio.cpp