[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 14:37:49 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #3, bug #57368 (project octave):
Also, from the pritf manpage,
Precision
An optional precision, in the form of a period ('.') followed by an
optional decimal digit string. Instead of
a decimal digit string one may write "*" or "*m$" (for some decimal
integer m) to specify that the precision is
given in the next argument, or in the m-th argument, respectively,
which must be of type int. If the precision
is given as just '.', the precision is taken to be zero. A negative
precision is taken as if the precision were
omitted. This gives the minimum number of digits to appear for d, i,
o, u, x, and X conversions, the number of
digits to appear after the radix character for a, A, e, E, f, and F
conversions, the maximum number of signifi‐
cant digits for g and G conversions, or the maximum number of
characters to be printed from a string for s and S
conversions.
The precision argument must be of type "int". I'm not sure what vasprintf is
converting +Inf too, but it is outside the expected data range.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57368>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/