Initializes in/out buffer before calling 'canonical_path'.