Re: [PATCH v2, 1/2] media: mediatek: vcodec: make sure array index is in valid range

From: Alexandre Mergnat
Date: Tue Apr 11 2023 - 04:24:20 EST


On 11/04/2023 07:54, Irui Wang wrote:
CERT-C Characters and Strings:
dev->reg_base[dev->venc_pdata->core_id] evaluates to an address
that could be at negative offset of an array, check core id is
in valid range.

Reviewed-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>