Out of range access on structs leads to bad data

Kim Hansen kimhanse at gmail.com
Tue Aug 12 03:52:26 CDT 2008


Hi,

I get this error on octave 3.0.1 (the Debian unstable package). I
don't have a build of the development Octave to test on.

I expected "error: invalid vector index = 2" from line 2.

====================
octave:1> a.b=1
a =
{
  b =  1
}

octave:2> c=a(2);
octave:3> c
c =
{
  b =

error: octave_base_value::print (): wrong type argument `<unknown type>'

}

octave:3> d=c.b;
error: value on right hand side of assignment is undefined
error: evaluating assignment expression near line 3, column 2
octave:3>
===================

Regards,
-- 
Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437  --  Mobil: 3091 2437



More information about the Bug-octave mailing list