[PATCH 5.10 29/82] media: s5p-jpeg: prevent buffer overflows