[PATCH V4 OLK-6.6 4/5] ubi: Reserve sufficient buffer length for the input mask