[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55210] isvarname does not check length of str
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #55210] isvarname does not check length of string against Matlab namelengthmax() |
Date: |
Tue, 11 Dec 2018 18:43:37 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063 |
URL:
<https://savannah.gnu.org/bugs/?55210>
Summary: isvarname does not check length of string against
Matlab namelengthmax()
Project: GNU Octave
Submitted by: rik5
Submitted on: Tue 11 Dec 2018 03:43:35 PM PST
Category: Octave Function
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The Matlab version of isvarname checks that the input string is less than
namelengthmax, or it returns false.
Octave implements the function namelengthmax, but internally we do not see any
reason to limit programmers. Accordingly, we allow Inf length strings (well,
really as much as an octave_idx_type will hold which is a minimum of 2^31-1).
I still don't see that we need to limit programmers, but this is a difference
between the Matlab and Octave versions of this function.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55210>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55210] isvarname does not check length of string against Matlab namelengthmax(),
Rik <=