fail if extradata cannot be allocated