linux/drivers/gpu/drm/amd/display
Bhawanpreet Lakha a1acc5d094 drm/amd/display: Fix static analysis bug in validate_bksv
[Why]
static analysis throws the error below

Out-of-bounds read (OVERRUN)
Overrunning array of 5 bytes at byte offset 7 by dereferencing pointer
(uint64_t *)hdcp->auth.msg.hdcp1.bksv.

var n is going to contain  r0p and bcaps. if they are non-zero the count
will be wrong

How]
Use memcpy instead to avoid this.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-11-19 10:12:54 -05:00
..
amdgpu_dm drm/amd/display: Refactor HDCP encryption status update 2019-11-19 10:12:53 -05:00
dc drm/amd/display: Add DSC 422Native debug option 2019-11-19 10:12:53 -05:00
dmub drm/amd/display: Add Navi10 DMUB VBIOS code 2019-11-19 10:12:53 -05:00
include drm/amd/display: add color space option when sending link test pattern 2019-11-19 10:12:52 -05:00
modules drm/amd/display: Fix static analysis bug in validate_bksv 2019-11-19 10:12:54 -05:00
Kconfig drm/amd/display: rename DCN1_0 kconfig to DCN 2019-11-13 15:29:44 -05:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO