[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65431] crash after hgload certain data
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #65431] crash after hgload certain data |
Date: |
Fri, 8 Mar 2024 11:48:34 -0500 (EST) |
Follow-up Comment #5, bug #65431 (group octave):
I have no idea whether it is the correct thing to do, but the following simple
change at least avoids the out of bounds indexing for me.
diff --git a/libinterp/corefcn/graphics.cc b/libinterp/corefcn/graphics.cc
--- a/libinterp/corefcn/graphics.cc
+++ b/libinterp/corefcn/graphics.cc
@@ -9736,7 +9736,7 @@ patch::properties::update_data ()
if (has_zd)
zd(ii, jj) = vert(row, 2);
- if (pervertex)
+ if (pervertex && row < fvc.rows ())
for (int kk = 0; kk < fvc.columns (); kk++)
cd(ii, jj, kk) = fvc(row, kk);
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65431>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Nicholas Jankowski, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Liang Tang, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Liang Tang, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data,
John W. Eaton <=
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Markus Mützel, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Dmitri A. Sergatskov, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Markus Mützel, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Liang Tang, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Dmitri A. Sergatskov, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Liang Tang, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Dmitri A. Sergatskov, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Dmitri A. Sergatskov, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Nicholas Jankowski, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Dmitri A. Sergatskov, 2024/03/08