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

lapack: add stricter size checks in Dlantr #69

Merged
merged 2 commits into from
Dec 29, 2019

Conversation

vladimir-ch
Copy link
Member

Please take a look.

@vladimir-ch
Copy link
Member Author

Is there a way to add the Draft state post hoc? These new panics will of course trigger until gonum/gonum#1207 is merged and the module info updated to pick it up.

@kortschak
Copy link
Member

I had hoped that this was possible a while back, but don't think there is.

Copy link
Member

@kortschak kortschak left a comment

Choose a reason for hiding this comment

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

I think it would be good to have a comment in the commit message explaining this given how difficult it was to find.

@kortschak
Copy link
Member

We should probably start versioning this repo formally. Should we start with v0.6.0 and track the minor version of gonum/gonum?

For certain input (documented as invalid but not checked) DLANTR in
Fortran LAPACK causes out-of-bound writes. Even though this has been
fixed in the Reference and will soon be in OpenBLAS, other
implementations may take longer. Therefore this commit adds checks for
the "invalid" matrix sizes because it's better to panic with a message
rather than cause memory corruption.
@codecov-io
Copy link

codecov-io commented Dec 28, 2019

Codecov Report

Merging #69 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #69      +/-   ##
=========================================
- Coverage   30.23%   30.2%   -0.03%     
=========================================
  Files           4       4              
  Lines        6414    6420       +6     
=========================================
  Hits         1939    1939              
- Misses       4039    4045       +6     
  Partials      436     436
Impacted Files Coverage Δ
lapack/netlib/lapack.go 31.86% <0%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eccb959...3a59b26. Read the comment docs.

kortschak
kortschak previously approved these changes Dec 28, 2019
@vladimir-ch
Copy link
Member Author

I've extended the commit message. Can you re-approve?

@vladimir-ch vladimir-ch merged commit bbb4dff into master Dec 29, 2019
@vladimir-ch vladimir-ch deleted the lapack/dlantr-size-checks branch December 29, 2019 11:47
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.

3 participants