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