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

bugs at busybox.net bugs at busybox.net
Sat Jan 13 10:17:44 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
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:                     assigned
====================================================================== 
Date Submitted:             01-13-2007 02:17 PST
Last Modified:              01-13-2007 02:17 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.
====================================================================== 

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             
      
======================================================================




More information about the busybox-cvs mailing list