From: Michael Stevens (mail_at_[hidden])
Date: 2005-11-01 04:06:54
On Wednesday, 26. October 2005 01:08, Jan Amtrup wrote:
> there is a bug in storage_sparse.hpp that affects insertion into empty
> sparse vectors and may lead to a memory violation.
> Here's a diff:
> [numeric/ublas] % diff storage_sparse.hpp.saved storage_sparse.hpp
> < if (it->first == p.first)
> > if (it != end () && it->first == p.first)
I committed the fix. I assume the past the end dereference was harmless
unless the data_ pointer was 0.
-- ___________________________________ Michael Stevens Systems Engineering 34128 Kassel, Germany Phone/Fax: +49 561 5218038 Navigation Systems, Estimation and Bayesian Filtering http://bayesclasses.sf.net ___________________________________