pass-hal: standard: Fix overrun issue of array 76/152576/3 accepted/tizen/4.0/unified/20170929.075606 accepted/tizen/unified/20170928.072145 submit/tizen/20170927.080101 submit/tizen_4.0/20170927.080359
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 26 Sep 2017 10:36:46 +0000 (19:36 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 27 Sep 2017 01:22:39 +0000 (10:22 +0900)
commitc09b59c69ab13cc17029b34c560daadb14338085
tree59187d8c3b76c3a5e3e5ff0625a3dc4dc7f20408
parent2727486add81b5faf130c1b5cd21131c16836cb0
pass-hal: standard: Fix overrun issue of array

The 'len + 1' of argument of read() might access
the out of range of 'buf' string. This patch fixes
the overrun issue.

Change-Id: I68d0bd4404515f492a0dc2624aba2d7f51630118
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/shared/sysfs.c