amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c:33:33: error: Buffer is accessed out of bounds
@ 2020-02-10 13:20 David Binderman
  0 siblings, 0 replies; only message in thread
From: David Binderman @ 2020-02-10 13:20 UTC (permalink / raw)
  To: harry.wentland, sunpeng.li, alexander.deucher, christian.koenig,
	David1.Zhou, David Airlie, daniel, amd-gfx, dri-devel,
	Linux Kernel Mailing List

Hello there,

linux-5.6-rc1/drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c:33:33: error: Buffer is accessed out of bounds: hdcp->auth.msg.hdcp1.bksv [bufferAccessOutOfBounds]

Source code is

   memcpy(&n, hdcp->auth.msg.hdcp1.bksv, sizeof(uint64_t));

Field bksv is only five bytes long. Suggest code rework.

Regards

David Binderman
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-10 14:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 13:20 drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c:33:33: error: Buffer is accessed out of bounds David Binderman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).