Skip to content

BUG: signal: fix crash in lfilter #8010

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 2 commits into from
Oct 11, 2017
Merged

BUG: signal: fix crash in lfilter #8010

merged 2 commits into from
Oct 11, 2017

Conversation

pv
Copy link
Member

@pv pv commented Oct 10, 2017

Fixes gh-7991

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

+1 for merge once the CIs come back happy

@larsoner larsoner added backport-candidate This fix should be ported by a maintainer to previous SciPy versions. defect A clear bug or issue that prevents SciPy from being installed or used as expected labels Oct 10, 2017
#if PY_VERSION_HEX >= 0x03000000
msg = PyUnicode_FromFormat(
"input type '%U' not supported\n", str);
#else
s = PyString_AsString(str);
Copy link

Choose a reason for hiding this comment

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

Question: how would this compile on Python 3? PyString_AsString is not a function.

Copy link
Member Author

@pv pv Oct 10, 2017

Choose a reason for hiding this comment

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

there are compat defines (edit: removed now, weren't used elsewhere, so obviously they were completely useless)

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Excellent job. I don't see any reason why the CI wouldn't pass.

@pv pv merged commit dab135d into scipy:master Oct 11, 2017
@pv pv added this to the 1.0.0 milestone Oct 11, 2017
@rgommers rgommers removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.signal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants