Skip to content

Regression in read csv causing segfault for invalid file input #46325

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

Merged
merged 3 commits into from
Mar 11, 2022

Conversation

phofl
Copy link
Member

@phofl phofl commented Mar 11, 2022

@phofl phofl added Regression Functionality that used to work in a prior pandas version Error Reporting Incorrect or improved errors from pandas IO CSV read_csv, to_csv labels Mar 11, 2022
@phofl phofl added this to the 1.4.2 milestone Mar 11, 2022
@@ -1710,6 +1710,10 @@ def _make_engine(
assert self.handles is not None
f = self.handles.handle

elif not engine == "python":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick "!="?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, no idea why I was using the not syntax

Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jreback jreback merged commit e252dd7 into pandas-dev:main Mar 11, 2022
@jreback
Copy link
Contributor

jreback commented Mar 11, 2022

thanks @phofl

@jreback
Copy link
Contributor

jreback commented Mar 11, 2022

@meeseeksdev backport 1.4.x

@lumberbot-app
Copy link

lumberbot-app bot commented Mar 11, 2022

Something went wrong ... Please have a look at my logs.

jreback pushed a commit that referenced this pull request Mar 12, 2022
@phofl phofl deleted the 45957 branch June 6, 2022 20:51
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas IO CSV read_csv, to_csv Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing an empty list to read_csv causes segmentation fault
4 participants