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

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

[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps
Date: Wed, 8 May 2024 14:40:12 -0400 (EDT)

Follow-up Comment #32, bug #65712 (group octave):

i havent' followed all of the changes, but for compatibility we should try to
get:

sort(m, n), where n > ndims(m), should return m

sort(m, n), where n = +/-Inf or NaN, or is nonnumeric, should produce an
error. 

sort(m, n), where n is nonscalar, whether or not it includes Inf, should
produce an error.  

(there's another bug report about functions only looking at dim(1) no matter
what size(dim) is. Does an Inf containing vector cause problems?)

it sounds like your comment #31 suggestion for stable would return m instead
of error for +Inf. That's better than a crash but catching with an error would
be better. But would it catch crashes for -Inf?  (I do see NaN doesn't crash
but it gets caught in later processing vs in input validation.)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65712>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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