Skip to content

Conversation

@ANAMASGARD
Copy link

What I Added

Two test cases that show the bug exists:

  • Test 9063.1: Long field ending with \x1a
  • Test 9063.2: Short CSV with \x1a at end

Both tests crash right now (expected).

What Comes Next

Next commit will fix the actual bug in src/fread.c by handling \x1a as a field terminator.

Screenshots

Screenshot From 2025-11-05 16-41-27

See attachment: Screenshot showing the segfault crash message

Fixes #7407

Reproduces issue Rdatatable#7407 where fread crashes when reading files
with \x1a (ASCII SUB) character. Manual testing confirms both
test cases trigger segmentation fault as expected.
@MichaelChirico
Copy link
Member

Please confirm you've read CONTRIBUTING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fread() allergic to \x1a bytes

2 participants