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

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

[Octave-bug-tracker] [bug #46530] String input returns on any kind of fu


From: andrefou
Subject: [Octave-bug-tracker] [bug #46530] String input returns on any kind of function A(I): index out of bounds triggered.
Date: Mon, 30 Nov 2015 15:16:32 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Follow-up Comment #6, bug #46530 (project octave):


To retake my example, with a resut named result1 and a function named
function1. Whatever the content of the function if the input is a string it
will give an error depending on the string, The first call of the function
since the opening of octave will not trigger it and after the second time the
bug will be triggered that way:

Hello,

finally the endfunction word at the end of the file was not enough to prevent
the bug.

>> result1=function1('a')
error: A(I): index out of bounds; value 97 out of bound 1
>> result1=function1('aa')
error: A(I): index out of bounds; value 97 out of bound 1
>> result1=function1('aaaaaa')
error: A(I): index out of bounds; value 97 out of bound 1
>> result1=function1('aaaaaab')
error: A(I): index out of bounds; value 98 out of bound 1
>> result1=function1('aaaaaabc')
error: A(I): index out of bounds; value 99 out of bound 1
>> result1=function1('aaaaaabcb')
error: A(I): index out of bounds; value 99 out of bound 1

It will not depend on the number of characters but on the number of different
type of characters, it is quite weird.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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