dv: fix Buffer overflow in amdolby_vision due to string processing [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Tue, 23 Jul 2019 02:24:04 +0000 (10:24 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 25 Jul 2019 08:02:36 +0000 (01:02 -0700)
commitf9d7bffd8dd6195f80566f629c95b122237fe371
tree32876f27a26796e63b9c5e5330ffaf0640052d70
parentf193e14f82e377b85e0e697ed7ffd36419c1d81a
dv: fix Buffer overflow in amdolby_vision due to string processing [1/1]

PD#OTT-5058

Problem:
Buffer overflow in amdolby_vision due to string processing

Solution:
add buffer limited when string buffer accepting commands (namely *parm);

Verify:
verified on Raven

Change-Id: Icd550f331efb2ee46e2f270e516df9942837f93d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c