[BusyBox 0001160]: Broken HEX and OCT conversion in printf

bugs at busybox.net bugs at busybox.net
Thu Feb 14 13:08:50 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1160 
====================================================================== 
Reported By:                manchoz
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1160
Category:                   Documentation
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             01-13-2007 02:17 PST
Last Modified:              02-14-2008 05:08 PST
====================================================================== 
Summary:                    Broken HEX and OCT conversion in printf
Description: 
Conversion from hexadecimal and octal ("0x" and "0" prefixes) to integer or
unsigned ("%d" and "%u" arguments) do not works.

In the functions "conv_strtol()" and "conv_strtoul() in
"coreutils/printf.c" "10" is passed as 'base' to bb_strtol and bb_strtoul
respectively: "0" should be passed to allow hex and oct right conversion.

Patch in additional information and in attach.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 02-14-08 05:08  
---------------------------------------------------------------------- 
Fixed sometime ago in svn. Thanks. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-13-07 02:17  manchoz        New Issue                                    
01-13-07 02:17  manchoz        Status                   new => assigned     
01-13-07 02:17  manchoz        Assigned To               => BusyBox         
01-13-07 02:17  manchoz        File Added: busybox-svn.printf.patch             
      
01-18-07 03:35  manchoz        Issue Monitored: manchoz                     
02-14-08 05:08  vda            Status                   assigned => closed  
02-14-08 05:08  vda            Note Added: 0004664                          
======================================================================




More information about the busybox-cvs mailing list