test/stl_iterators.cpp test fails due to integer overflow
The stl_iterators tests for integer-coefficient matrices lead to many integer overflows. In most cases these seem harmless, since they overflow the same way in both the tested and expected values. However, I'm getting failures due to crashes when the norm()
operator is applied, since the squaredNorm()
overflows to a negative integer.
https://gitlab.com/libeigen/eigen/-/blob/master/test/stl_iterators.cpp#L434
A simple fix would be to convert these calls to squaredNorm()
. That way they would still overflow, but wouldn't lead to domain errors.