Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msm: mdss: Fix potential buffer overflow
arg_cfg has a size of MDSS_MAX_PANEL_LEN + 1, whereas panel_cfg has a size of MDSS_MAX_PANEL_LEN, meaning there could be an oveflow. Oddly enough, this was only detected by GCC and not Clang, making me think Clang is doing some behind the scenes optimization but that doesn't make it any less of a bug. This was detected by CONFIG_FORTIFY_SOURCE. Reported-by: Kristof Petho <kristof.petho@gmail.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: khusika <khusikadhamar@gmail.com>
- Loading branch information