usb: Fix possible vulnerability 55/228155/2
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 19 Mar 2020 08:24:09 +0000 (17:24 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 19 Mar 2020 09:00:31 +0000 (18:00 +0900)
commitcb294243117aaf821729ca2296b04de11dd1f324
tree1e414926c37af3bfb0de6240dea7a899dc70c3c2
parentc7ba9c8fc76ea7a329d66ebc5da9db12d1db61da
usb: Fix possible vulnerability

Since the return value of read operation is not checked properly,
it can be the target of attack by buffer overflows. To prevent this,
return values will be treated.

Change-Id: I702b64fb4f77b7cc507a519952c11f41813cf0a2
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/usb.c