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