Mercurial > octave-nkf
changeset 5869:6a23ee71dd86
[project @ 2006-06-29 18:04:20 by jwe]
author | jwe |
---|---|
date | Thu, 29 Jun 2006 18:04:21 +0000 |
parents | 84b5cd59e627 |
children | a0218194daa6 |
files | liboctave/ChangeLog liboctave/Sparse.cc src/ChangeLog |
diffstat | 3 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog Thu Jun 29 06:39:20 2006 +0000 +++ b/liboctave/ChangeLog Thu Jun 29 18:04:21 2006 +0000 @@ -1,3 +1,8 @@ +2006-06-29 Atsushi Kajita <a-kajita@mizar.freemail.ne.jp> + + * Sparse.cc (Sparse<T>::SparseRep::elem): Avoid out of bounds + array access. + 2006-06-27 John W. Eaton <jwe@octave.org> * Makefile.in: Finish renaming of OBJECTS -> LIBOCTAVE_OBJECTS.
--- a/liboctave/Sparse.cc Thu Jun 29 06:39:20 2006 +0000 +++ b/liboctave/Sparse.cc Thu Jun 29 18:04:21 2006 +0000 @@ -59,7 +59,7 @@ // Ok, If we've gotten here, we're in trouble.. Have to create a // new element in the sparse array. This' gonna be slow!!! - if (c[ncols+1] == nzmx) + if (c[ncols] == nzmx) { (*current_liboctave_error_handler) ("Sparse::SparseRep::elem (octave_idx_type, octave_idx_type): sparse matrix filled");