# HG changeset patch # User jwe # Date 782713144 0 # Node ID e4b2cd2ad0a2a191bde54f6174c71107f0d19abd # Parent f080467776945572b7fbf5261ebf395ee2441132 [project @ 1994-10-21 04:19:04 by jwe] diff --git a/liboctave/idx-vector.cc b/liboctave/idx-vector.cc --- a/liboctave/idx-vector.cc +++ b/liboctave/idx-vector.cc @@ -225,6 +225,12 @@ initialized = 0; return; } + else if (max_val >= z_len) + { + ::error ("%s index %d out of range", rc, max_val+1); + initialized = 0; + return; + } initialized = 1; }