[PATCH 5.15 33/76] media: s5p-jpeg: prevent buffer overflows