# HG changeset patch # User jwe # Date 1151604261 0 # Node ID 6a23ee71dd8682c4d50b3557015848956cd0d089 # Parent 84b5cd59e6272b0d075e002558f8995ecb1d4130 [project @ 2006-06-29 18:04:20 by jwe] diff -r 84b5cd59e627 -r 6a23ee71dd86 liboctave/ChangeLog --- 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 + + * Sparse.cc (Sparse::SparseRep::elem): Avoid out of bounds + array access. + 2006-06-27 John W. Eaton * Makefile.in: Finish renaming of OBJECTS -> LIBOCTAVE_OBJECTS. diff -r 84b5cd59e627 -r 6a23ee71dd86 liboctave/Sparse.cc --- 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"); diff -r 84b5cd59e627 -r 6a23ee71dd86 src/ChangeLog --- a/src/ChangeLog Thu Jun 29 06:39:20 2006 +0000 +++ b/src/ChangeLog Thu Jun 29 18:04:21 2006 +0000 @@ -219,7 +219,7 @@ 2006-06-09 John W. Eaton - * version.h (OCTAVE_VERSION): Now 2.9.5+. + * version.h (OCTAVE_VERSION): Now 2.9.6+. 2006-06-09 John W. Eaton