[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57368] Printf() with +Inf precision causes se
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #57368] Printf() with +Inf precision causes segfault |
Date: |
Fri, 6 Dec 2019 11:50:17 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #57368 (project octave):
Severity: 3 - Normal => 2 - Minor
Priority: 5 - Normal => 3 - Low
Status: None => Confirmed
Release: 5.1.0 => dev
_______________________________________________________
Follow-up Comment #1:
Confirmed on the development branch.
This would seem to me fairly simple to avoid by having the programmer check
their precision for reasonableness before printing. Sample code might be
precision = min (precision, 20);
Internally, Octave relies on vasprintf which is supplied by gnulib. In the
long term, this is in an upstream bug that needs to be reported and fixed in
that project.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57368>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/