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 possible segmentation fault in get_magnetic_dataset #196

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

lan496
Copy link
Member

@lan496 lan496 commented Oct 31, 2022

Because we cannot assume magnetic symmetry search is always successful, this commit fixes gracefully to return NULL for such a difficult situation with possibly too high symprec and mag_symprec.

Because we cannot assume magnetic symmetry search is always successful,
this commit fixes gracefully to return NULL for such a difficult
situation with possibly too high symprec and mag_symprec.
@codecov-commenter
Copy link

Codecov Report

Base: 85.12% // Head: 85.12% // No change to project coverage 👍

Coverage data is based on head (4e8bf38) compared to base (9218fa1).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #196   +/-   ##
========================================
  Coverage    85.12%   85.12%           
========================================
  Files           16       16           
  Lines         1318     1318           
========================================
  Hits          1122     1122           
  Misses         196      196           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lan496 lan496 merged commit 36d570b into spglib:develop Oct 31, 2022
@lan496 lan496 deleted the fix-segfault-magdataset branch October 31, 2022 03:31
@janosh janosh mentioned this pull request Nov 1, 2022
@LecrisUT LecrisUT added the bug label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants