make input_buffer data be on heap