eth-cscs/COSMA

Subscript operator on empty vector

noma opened this issue · 5 comments

noma commented

Stumbled across this:

rank_permutation[i] = i;

should probably use push_back(), as the vector is default initialised in 250.

Thanks @noma, you are totally right. This was a recent change that was not present in the previous release, so it's a good catch!

Although it's still unclear why this wasn't caught by our CI tests, as we also run address sanitizer tests on each commit. We will have to investigate it.

noma commented

I'd guess your tests didn't trigger 174 due to lack of a suitable input.

True, I just verified it and now I see what the problem is. Thanks again for catching this!

This should be fixed in: 35e2dda. Thanks again for reporting this!