BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000122 [uClibc] Stdio feature always 02-24-05 07:02 03-16-05 22:59
Reporter mtross View Status public  
Assigned To mjn3
Priority normal Resolution open  
Status assigned   Product Version 0.9.27
Summary 0000122: patch scanf.c: add a-flag conversion for vfscanf
Description The patch adds glibc-like 'a' flag behaviour to vfscanf. The a-modifier is used in conjunction with s, S and [.

The wide character function vfwscanf is not affected by this patch, as it uses a completely different code path.
Additional Information
Attached Files  uclibc-scanf-aflag.patch [^] (4,083 bytes) 02-24-05 07:02
 uclibc-scanf-aflag2.patch [^] (3,632 bytes) 02-27-05 07:20

- Relationships

- Notes
(0000063)
mjn3
02-24-05 21:09

First, I'm not sure I want to support the 'a' flag at all since it leads to possible ambiguities with the ANSI/ISO C99 'a' conversion specifier. But even if I decided to, I would never apply the proposed patch as-is because it uses malloc/realloc without checking the return value.
 
(0000067)
mtross
02-27-05 07:21

I've implemented the 'a' flag for portability reasons, and in the TODO list the 'a' flag is mentioned as a little thing that needs fixing. Therefore I thought it might be useful for you.
Changed the patch to respect the return values of malloc and realloc.
 

- Issue History
Date Modified Username Field Change
02-24-05 07:02 mtross New Issue
02-24-05 07:02 mtross File Added: uclibc-scanf-aflag.patch
02-24-05 21:09 mjn3 Note Added: 0000063
02-27-05 07:20 mtross File Added: uclibc-scanf-aflag2.patch
02-27-05 07:21 mtross Note Added: 0000067
03-16-05 11:56 andersen Assigned To mjn3 => uClibc
03-16-05 22:59 mjn3 Assigned To uClibc => mjn3


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker