Bug 2908 - improper printing of hexadecimal floating point numbers
Summary: improper printing of hexadecimal floating point numbers
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.4
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-12 14:32 UTC by Ram Gupta
Modified: 2014-07-04 15:23 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ram Gupta 2006-07-12 14:32:42 UTC
This function works incorrectly in case when argument is of
long double type and precision is set to zero.
For example, call
   printf( "%.0LA", ( long double ) 0x0.FFFFp+0 );
will output string "0XP+8" with character number 1 missing
between "X" and "P" instead of "0X1P+0".
Comment 1 Ulrich Drepper 2006-08-03 09:24:55 UTC
Actually, the output contains something between X and P.  It's '\1', not '1'. 
That's fixed now.