Merge "FROMGIT: media: venus: hfi_parser: add check to avoid out of bound access" into kernel.lnx.5.4.r1-rel

This commit is contained in:
Linux Build Service Account 2025-03-17 20:01:15 -07:00 • committed by Gerrit - the friendly Code Review server
commit c6cb502b05

View file

@ -19,6 +19,8 @@ static void init_codecs(struct venus_core *core)
struct venus_caps *caps = core->caps, *cap;
unsigned long bit;
core->codecs_count = 0;
if (hweight_long(core->dec_codecs) + hweight_long(core->enc_codecs) > MAX_CODEC_NUM)
return;