bugGNU Octave - Bugs: bug #31774, bug in strmatch (related to...

 
 

bug #31774: bug in strmatch (related to optimization fixes?)

Submitted by:  jkirby <jkirby>
Submitted on:  Fri 03 Dec 2010 09:16:31 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: jkirbyOpen/Closed: Closed
Release: 3.3.53Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 08 Dec 2010 08:26:28 AM UTC, comment #1:

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/d7fbb08e28cf

It appears to fix the problem for me, so I'm closing this report.

John W. Eaton <jwe>
Project Administrator
Fri 03 Dec 2010 09:16:31 PM UTC, original submission:

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).

jkirby <jkirby>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jkirby (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 08 Dec 2010 08:26:28 AM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1