OSDN Git Service

DO NOT MERGE ANYWHERE Sensorservice, fix the over boundary risk
authorLianchao Song <songlianchao@huawei.com>
Tue, 12 Apr 2016 13:58:32 +0000 (21:58 +0800)
committerChenjie Luo <cjluo@google.com>
Thu, 14 Apr 2016 18:03:44 +0000 (18:03 +0000)
commitd89d29d348855a9348509555a2d6fe87202ca715
tree11f487501b6484f1443f085b03a1bfbc1b0da5b4
parentf6d2288e5893b17639dbd36338ffc4a84a184425
DO NOT MERGE ANYWHERE Sensorservice, fix the over boundary risk

Add the parameter check during the operation of memcopy/memmove
to avoid the over boundary risk.
If this issue happen, the android system will restart.
Modify the code refer to the review comment

BUG:28123226

Change-Id: Ib17e94d9b916938756d460bc2c05dd2d60246932
Signed-off-by: Lianchao Song <songlianchao@huawei.com>
services/sensorservice/SensorService.cpp [changed mode: 0644->0755]