[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps |
Date: |
Tue, 7 May 2024 21:16:49 -0400 (EDT) |
Follow-up Comment #5, bug #65712 (group octave):
>From ov-base.cc:
int
octave_base_value::nint_value (bool frc_str_conv) const
{
double d = 0.0;
try
{
d = double_value (frc_str_conv);
}
catch (octave::execution_exception& ee)
{
err_wrong_type_arg (ee, "octave_base_value::nint_value ()", type_name
());
}
if (octave::math::isnan (d))
error ("conversion of NaN to integer value failed");
return static_cast<int> (octave::math::fix (d));
}
It is checking only for isnan not isinf, so the fact that Clang is lumping inf
with nan might be a Clang bug.
Either way, we need better safeguarding against inf inputs causing crashes.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65712>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Dmitri A. Sergatskov, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Arun Giridhar, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Dmitri A. Sergatskov, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps,
Arun Giridhar <=
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Dmitri A. Sergatskov, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Arun Giridhar, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Dmitri A. Sergatskov, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Arun Giridhar, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Dmitri A. Sergatskov, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Arun Giridhar, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Arun Giridhar, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Dmitri A. Sergatskov, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Dmitri A. Sergatskov, 2024/05/07
[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps, Dmitri A. Sergatskov, 2024/05/07