Modify

Opened 11 years ago

Closed 11 years ago

#2021 closed defect (fixed)

[PATCH] Broken HEX and OCT conversion in busybox' printf

Reported by: giampaolo.mancini@… Owned by: developers
Priority: normal Milestone:
Component: base system Version:
Keywords: Cc:

Description

Conversion from hexadecimal and octal ("0x" and "0" prefixes) to integer or unsigned ("%d" and "%u" arguments) do not works properly.

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.

Has already been corrected in busybox r18054.

Attachments (1)

busybox-printf.patch (571 bytes) - added by giampaolo.mancini@… 11 years ago.
Allow OCT and HEX conversions in busybox' printf

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by giampaolo.mancini@…

Allow OCT and HEX conversions in busybox' printf

comment:1 Changed 11 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

added in [7895]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.