Commit fb029489 authored by Ravikanth Tuniki's avatar Ravikanth Tuniki Committed by Shrirang Bagul
Browse files

disp: msm: add check for buffer length before copy

BugLink: https://bugs.launchpad.net/bugs/1945470



Length of the buffer to be copied is checked
against both source and destination buffer lengths
before copying. This ensures that there is  no
buffer overflow while reading as well as writing.

Change-Id: Ie261a0d3f4917a94a7348ac5aa7e188130aed865
Signed-off-by: default avatarRavikanth Tuniki <rtunik@codeaurora.org>
(cherry picked from commit ae268ec0326a2083eebd0ad13198e67964831860)
Signed-off-by: default avatarShrirang Bagul <shrirang.bagul@canonical.com>
parent 58792c19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment