Changeset 6c2a2ca in tol


Ignore:
Timestamp:
Sep 18, 2009, 11:25:43 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
f6c81d2
Parents:
3c7ad1f
Message:

Avoiding invalid read of empty columns in BVMatColMajIter

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1409 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/vmatrix_type/vmat_iterator.cpp

    r3c7ad1f r6c2a2ca  
    130130    k1_   = ((int*)M_.s_.chlmRsparse_->p)[j+1];
    131131    k_    = k0_;
    132     i_nz_ = ((int*)M_.s_.chlmRsparse_->i)[k_];
     132    if(k_<k1_)
     133    {
     134      i_nz_ = ((int*)M_.s_.chlmRsparse_->i)[k_];
     135    }
     136    else
     137    {
     138      i_nz_ = r_;
     139    }
    133140    cRs_SetCell();
    134141    break;
Note: See TracChangeset for help on using the changeset viewer.