fix: buffer copy from get_input_buffer