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 segfault in DintPropagation due to size check in wrong place #309

Merged
merged 1 commit into from Oct 8, 2020

Conversation

cozzyd
Copy link
Contributor

@cozzyd cozzyd commented Sep 30, 2020

I know DINT is probably on its way out, but right now it crashes for me.

This commit fixes it (the size check is in the wrong place here, and trying to access .back().X1 on a zero-size vector triggers a segfault for me, although I guess it can also fail silently). The second check is probably extraneous but I fixed it anyway.

@TobiasWinchen
Copy link
Member

Thx.

@TobiasWinchen TobiasWinchen merged commit 8ea4f93 into CRPropa:master Oct 8, 2020
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.

None yet

2 participants