Bug 223363 - libc sprintf produces incorrect output for %%E
Summary: libc sprintf produces incorrect output for %%E
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 6
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-18 23:28 UTC by Matt Fago
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-29 10:48:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Testcase (191 bytes, text/x-csrc)
2007-01-18 23:28 UTC, Matt Fago
no flags Details

Description Matt Fago 2007-01-18 23:28:40 UTC
Description of problem:

sprintf produces incorrect results with "%%E" format.

Version-Release number of selected component (if applicable):

Most up to date libc on fc6.

How reproducible: 100%

Steps to reproduce:
1) Compile the attached file via:
gcc -o sprintf-bug sprintf-bug.c
2) run
  
Actual results:
Here 6.953144E-310
Here %E
Here %E


Expected results:
Here %E
Here %E
Here %E

Additional info:

Is this libc or gcc? I have not had much luck with libc's bugzilla but I'll try
again tomorrow.

Comment 1 Matt Fago 2007-01-18 23:28:40 UTC
Created attachment 145953 [details]
Testcase

Comment 2 Matt Fago 2007-01-19 13:58:09 UTC
I plead temporary insanity. Please close as "INVALID" or similar.

It would be nice if gcc could produce the warning "invalid number of arguments to printf" but I can 
understand why it does not.

Sorry for the noise.


Note You need to log in before you can comment on or make changes to this bug.