Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 9447: SIGSEGV when executing read_csv() query for struct with empty VARCHAR #9448

Merged
merged 1 commit into from Oct 24, 2023

Conversation

ryderblue
Copy link

The StringTrim() attempts to remove whitespace at end of string but assumes that a non-empty value is present. This causes a SIGSEGV when field is empty. Fix is to add a check to the while loop and a unit test to verify fix.

@Mytherin Mytherin merged commit c66ea40 into duckdb:main Oct 24, 2023
43 checks passed
@Mytherin
Copy link
Collaborator

Thanks for the PR! LGTM

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.

None yet

2 participants