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

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

[Octave-bug-tracker] [bug #42825] Memory corruption in sparse matrix ope


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #42825] Memory corruption in sparse matrix operation
Date: Sat, 09 Jan 2016 09:49:14 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Follow-up Comment #3, bug #42825 (project octave):

The attached changeset seem to fix the problem.  The code segment to make room
for the new data was using std::copy instead of std::copy_backward.

I have no idea why the bug didn't show up if the initial assignment was
complex, or indeed why this bug didn't show up more often.

I think that bugs like this that produce totally erroneous results with no
error deserve their own item group.  It is really important to be able to
trust the numbers that Octave produces; that is even more important than not
segfaulting.

(file #35953)
    _______________________________________________________

Additional Item Attachment:

File name: bug_42825.cset                 Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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