Check that the data will fit into the fixed sized buffer CAB(outbuf) and return an error if not before copying.