Skip to content

Conversation

@ms609
Copy link

@ms609 ms609 commented Jul 6, 2020

If spi references the first element of sibling_pairs, then the decrement will bring spi out of the range of sibling_pairs, which triggers a memory warning in ASAN. (This is causing issues with using 'uspr' from within R.)

As spi is not used before the break; statement, it's not clear that it is necessary to decrement its value at all; I wonder whether the line can be deleted entirely?

My C++ knowledge is pretty thin, so it's quite possible that I'm overlooking something obvious here.

If `spi` references the first element of sibling_pairs, then the decrement will bring `spi` out of the range of `sibling_pairs`, which triggers a memory warning in ASAN.

As `spi` is not used before the `break;` statement, it's not clear that it is necessary to decrement its value at all; I wonder whether the line can be deleted entirely?

My C++ knowledge is pretty thin, so it's quite possible that I'm overlooking something obvious here.
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