mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
Add an internal assertion in makeCompressed to catch a possible risk of null-pointer access.
This commit is contained in:
parent
eb563049f7
commit
63464754ef
@ -467,6 +467,8 @@ class SparseMatrix
|
||||
if(isCompressed())
|
||||
return;
|
||||
|
||||
eigen_internal_assert(m_outerIndex!=0 && m_outerSize>0);
|
||||
|
||||
Index oldStart = m_outerIndex[1];
|
||||
m_outerIndex[1] = m_innerNonZeros[0];
|
||||
for(Index j=1; j<m_outerSize; ++j)
|
||||
|
Loading…
x
Reference in New Issue
Block a user