-
Notifications
You must be signed in to change notification settings - Fork 7
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
epiread.c #28
Comments
I looked through the code block associated with that statement, and I think the code is okay as written. However, if you find a case where it actually does produce a core dump, feel free to reopen this issue with the test case and I'll look into it more then. |
I looked into this further and found there is a specific case where the core dump occurs. When the read is from the OB/CTOB strand and the first base is a G in a CG, then as the code was written, it would produce a core dump. The implemented fix isn't ideal (see below for a copy of the in-code comment), but none of the fixes I thought through were ideal.
|
line 706
// reference is a G
if (bsstrand && rb == 'G' && rpos+j-1 >= rs->beg) {
I think you need also "&& j>0" to prevent a core dump for some input.
Volker
The text was updated successfully, but these errors were encountered: