Skip to content

Segfault with unmatched quote, if there are no column names #636

@jennybc

Description

@jennybc

This segfaults:

vroom::vroom(
  I('field1,"unmatched,field3\n'),
  delim = ",",
  col_names = FALSE,
  show_col_types = FALSE
)

Now, it is a malformed input, but it shouldn't segfault.

The correction is to provide a quote value that is consistent with the input, e.g.:

vroom::vroom(
  I('field1,"unmatched,field3\n'),
  delim = ",",
  quote = "",
  col_names = FALSE,
  show_col_types = FALSE
)
#> # A tibble: 1 × 3
#>   X1     X2            X3    
#>   <chr>  <chr>         <chr> 
#> 1 field1 "\"unmatched" field3

Created on 2026-06-10 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorrobustness 🏋️‍♀️Issues dealing with malformed files

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions