[PATCH v3 1/1] mmdevapi: Avoid copying more memory than reserved in validate_fmt (ASan).