octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]