media: imx-jpeg: fix a bug of accessing array out of bounds (CVE-2022-49163) | HOL Guard CVE