Skip to content

BUG: fixed SAS7BDATReader._get_properties #12658

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

Closed
wants to merge 1 commit into from

Conversation

gdementen
Copy link
Contributor

this fixes a crasher I had in one of my files using SAS7BDATReader.

cc: @kshedden

self._path_or_buf.read is an obvious mistake

also added + total_align to _os_name_offset and _os_make_offset as they are
present in the original code from Jared Hobbs:
https://bitbucket.org/jaredhobbs/sas7bdat/src/da1faa90d0b15c2c97a2a8eb86c91c58081bdd86/sas7bdat.py?fileviewer=file-view-default#sas7bdat.py-1450

self._path_or_buf.read is an obvious mistake

also added + total_align to _os_name_offset and _os_make_offset as they are
present in the original code from Jared Hobbs:
https://bitbucket.org/jaredhobbs/sas7bdat/src/da1faa90d0b15c2c97a2a8eb86c91c58081bdd86/sas7bdat.py?fileviewer=file-view-default#sas7bdat.py-1450
@gdementen gdementen mentioned this pull request Mar 17, 2016
@jreback jreback added the IO SAS SAS: read_sas label Mar 17, 2016
@jreback
Copy link
Contributor

jreback commented Mar 17, 2016

can you add a test that hits this path

@jreback jreback added the Bug label Mar 17, 2016
@gdementen
Copy link
Contributor Author

@gdementen
Copy link
Contributor Author

Do you want me to include that test file in this PR even if the file is not readable even with this PR (due to #12659)?

@jreback
Copy link
Contributor

jreback commented Mar 17, 2016

prob easiest to have a single PR with the test files.

@gdementen
Copy link
Contributor Author

btw, this fixes issue #12647

@raderaj
Copy link

raderaj commented Mar 17, 2016

@jreback jreback added this to the 0.18.1 milestone Apr 22, 2016
@jreback
Copy link
Contributor

jreback commented Apr 22, 2016

closed by #12656

@jreback jreback closed this Apr 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO SAS SAS: read_sas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants