osd: fix access disp_rect memory out-of-bounds by KASAN scan
authorBrian Zhu <brian.zhu@amlogic.com>
Fri, 31 Aug 2018 18:10:02 +0000 (02:10 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 7 Sep 2018 08:55:22 +0000 (01:55 -0700)
commite01b7f904089b4db040e2d1dd6b3788c648c1a33
treef62e183be9a00e41ca7adbd441dd89d0fdc103b6
parent7e04e8580d764dd7ca5dc571edcccaf913b21ad9
osd: fix access disp_rect memory out-of-bounds by KASAN scan

PD#172933: osd: fix access disp_rect memory out-of-bounds by KASAN scan
    KASAN log:
        BUG: KASAN: global-out-of-bounds in osd_notify_callback+0x1e8/0x5f0
        Read of size 4 at addr ffffff900c8e91a0 by task HwBinder:3063_2/3163

Change-Id: Icbea6a91da73919a09d37295660fb029e1de8488
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
drivers/amlogic/media/osd/osd_fb.c