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

Feature/fix issue417 #422

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Feature/fix issue417 #422

wants to merge 6 commits into from

Conversation

JoshuaGreen
Copy link
Collaborator

This is my simple attempt at fixing Issue #417.  The problem is that we're reaching line 278 of conditions/mummer.c with SLICE_STARTER(si) == no_side and there's no corresponding entry in mummer_measure_length.  This fix adds such an entry and sets it to NULL, which is the only sensible default for an unspecified function pointer.  This clears the undefined behavior (and ensures we skip lines 280-303) and is plausibly correct, but there remains an alternative.  Perhaps in fact the bug is higher up in whatever is causing us to reach that point SLICE_STARTER(si) == no_side.  If so then that would still need to be fixed, but even if that's the case adding this entry to mummer_measure_length can't hurt anything.

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.

1 participant