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

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

[Octave-bug-tracker] [bug #31774] bug in strmatch (related to optimizati


From: jkirby
Subject: [Octave-bug-tracker] [bug #31774] bug in strmatch (related to optimization fixes?)
Date: Fri, 03 Dec 2010 21:16:31 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)

URL:
  <http://savannah.gnu.org/bugs/?31774>

                 Summary: bug in strmatch (related to optimization fixes?)
                 Project: GNU Octave
            Submitted by: jkirby
            Submitted on: Fri 03 Dec 2010 09:16:31 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: jkirby
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.3.53
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

the following code causes a "error: strncmp: N must be greater than 0"
error.

lines = { '', '% comment line', 'var a = 5', ''}
strmatch ('', lines, 'exact')


Octave 3.2.4 and Matlab correctly return [1;4] as the answer.

even though it's not related to the fix: Matlab does allow 0 and negative
length values for n within strncmp (it simply returns true for any two
arguments).




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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