[PATCH 4.19 15/52] media: s5p-jpeg: prevent buffer overflows