Mercurial > octave
changeset 21470:bbf3814049e2
* Array-util.cc (freeze): Fix out-of-bound indexing (bug #47423)
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Thu, 17 Mar 2016 23:37:13 -0700 |
parents | 29e2523c99c2 |
children | 57dea7b5ca46 |
files | liboctave/array/Array-util.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/array/Array-util.cc Thu Mar 17 18:31:47 2016 -0400 +++ b/liboctave/array/Array-util.cc Thu Mar 17 23:37:13 2016 -0700 @@ -272,7 +272,7 @@ static const char *tag[3] = { "row", "column", 0 }; for (int i = 0; i < n; i++) - retval(i) = ra_idx(i).freeze (dimensions(i), tag[i < 2 ? i : 3], + retval(i) = ra_idx(i).freeze (dimensions(i), tag[i < 2 ? i : 2], resize_ok); return retval;