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

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

[Octave-bug-tracker] [bug #47875] audiowrite: segmentation fault when na


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #47875] audiowrite: segmentation fault when named parameter is missing coresponding value
Date: Sun, 8 May 2016 15:35:23 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Update of bug #47875 (project octave):

        Operating System:               GNU/Linux => Any                    
                 Summary:     Crash on audiowrite => audiowrite: segmentation
fault when named parameter is missing coresponding value

    _______________________________________________________

Follow-up Comment #2:

Here is a more minimal example:


audiowrite ("foo.wav", 1, 44100, "BitsPerSample")


The top two frames of the backtrace:


#0  0x00007fffe674aebe in octave_value::int_value (frc_str_conv=false,
req_int=false, this=0x8c8c08) at ../libinterp/octave-value/ov.h:732
#1  Faudiowrite (args=...) at ../libinterp/dldfcn/audioread.cc:344


This is clearly because the code is not checking whether args(i+1) is valid if
args(i) is a valid parameter name.

This would be a good bug for a new contributor to work on.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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