[PATCH openEuler-1.0-LTS] media: s5p-jpeg: prevent buffer overflows