[PATCH 6.6 062/119] media: s5p-jpeg: prevent buffer overflows