From 0735551b0888861e086e12a7f8b29bd46b70184e Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 13 Nov 2025 13:44:24 -0800 Subject: [PATCH] anv/video: Read the right source for memcpy I'm assuming this based off the `if` branch above, after reading the code for bit that Coverity pointed out in that branch. It doesn't look correct to start at the base pointer, which will be 0 initialized and has 52 bits of zero padding, while the default values are 255. Fixes: 314de7af063 ("anv: Initial support for VP9 decoding") Reviewed-by: Hyunjun Ko Part-of: --- src/intel/vulkan/anv_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_video.c b/src/intel/vulkan/anv_video.c index 870b09a9202..9f6523ef339 100644 --- a/src/intel/vulkan/anv_video.c +++ b/src/intel/vulkan/anv_video.c @@ -1276,7 +1276,7 @@ vp9_prob_buf_update(struct anv_video_session *vid, } else if (BITSET_TEST(vid->prob_tbl_set, 3)) { VP9_CTX_DEFAULT(seg_tree_probs); VP9_CTX_DEFAULT(seg_pred_probs); - memcpy(ptr + SEG_PROBS_OFFSET, &ctx, + memcpy(ptr + SEG_PROBS_OFFSET, (void *)&ctx.seg_tree_probs, SEG_TREE_PROBS + PREDICTION_PROBS); }