mirror of
https://github.com/torvalds/linux.git
synced 2025-11-10 05:30:50 +02:00
[WHAT] msg_id is used as an array index and it cannot be a negative value, and therefore cannot be equal to MOD_HDCP_MESSAGE_ID_INVALID (-1). [HOW] Check whether msg_id is valid before reading and setting. This fixes 4 OVERRUN issues reported by Coverity. Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
||
|---|---|---|
| .. | ||
| hdcp.c | ||
| hdcp.h | ||
| hdcp1_execution.c | ||
| hdcp1_transition.c | ||
| hdcp2_execution.c | ||
| hdcp2_transition.c | ||
| hdcp_ddc.c | ||
| hdcp_log.c | ||
| hdcp_log.h | ||
| hdcp_psp.c | ||
| hdcp_psp.h | ||
| Makefile | ||