iter: ensure specified data length is less than remaining buffer.