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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35679] median (rand (1, 1, 1, 3), 4) segmenta


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #35679] median (rand (1, 1, 1, 3), 4) segmentation fault
Date: Tue, 06 Mar 2012 17:26:53 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Riverspider/3.6.13

Follow-up Comment #11, bug #35679 (project octave):

Yes, I found that too, but in certain cases (e.g. the even case) the
computation of the stride is incorrect (too large) even with your patch and
still goes past the end, reading uninitialised data.

Moreover, it doesn't make sense to chop the singletons immediately after
reading the dimension vector. The reason they're chopped is for the benefit of
the m array. I think the problem is ultimately in the computation of the
stride.

Unfortunately, I'm having difficulty understanding the algorithm that Jaroslav
had in mind here, so I still cannot figure out how to fix it. But I'm still
working on it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35679>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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