[PATCH OLK-5.10] media: s5p-jpeg: prevent buffer overflows