[uClibc 0000539]: printf & leading zeroes

bugs at busybox.net bugs at busybox.net
Thu Nov 10 19:11:18 UTC 2005


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=539 
====================================================================== 
Reported By:                dg6nee
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   539
Category:                   Stdio
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             11-10-2005 11:11 PST
Last Modified:              11-10-2005 11:11 PST
====================================================================== 
Summary:                    printf & leading zeroes
Description: 
There is a bug when you use a compiler that packs structures/bitfields and
allows entries with less than 32 bit. See include/printf.h, there is a
bitfield that has only 12 bits. Our gcc packs this into a 16 bit unsigned
short. On the other hand the same struct printf_info uses an unsigned int
(32 bit!) for the same data -> this does of course not work.

I attached a patch that fixes this by adding the missing padding bits.

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-10-05 11:11  dg6nee         New Issue                                    
11-10-05 11:11  dg6nee         Status                   new => assigned     
11-10-05 11:11  dg6nee         Assigned To               => uClibc          
11-10-05 11:11  dg6nee         File Added: uclibc-0.9.28_include_printf.h.diff  
                 
======================================================================




More information about the uClibc-cvs mailing list