yop: check that extradata is large enough.