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
0001442 [BusyBox] Other crash always 07-24-07 23:05 07-25-07 10:18
Reporter rockeychu View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0001442: [patch] with getopt32.c to support GETOPT_LONG options truly
Description Sine SVN version 19236, getopt32 is not truly GETOPT_LONG options.
Test with 'ls --color' or other cmd with GETOPT_LONG enabled.

Patch as following:

Index: libbb/getopt32.c
===================================================================
--- libbb/getopt32.c (revision 19256)
+++ libbb/getopt32.c (working copy)
@@ -354,7 +354,9 @@
            count++;
        }
        /* count == no. of longopts + 1 */
- long_options = alloca(count * sizeof(*long_options));
+ size_t size = count * sizeof(*long_options);
+ long_options = alloca(size);
+ memset(long_options, 0, size);
        i = 0;
        optstr = applet_long_options;
        while (--count) {
Additional Information
Attached Files

- Relationships

- Notes
(0002639)
vda
07-25-07 10:18

fixed, thanks!
 

- Issue History
Date Modified Username Field Change
07-24-07 23:05 rockeychu New Issue
07-24-07 23:05 rockeychu Status new => assigned
07-24-07 23:05 rockeychu Assigned To  => BusyBox
07-25-07 10:18 vda Status assigned => closed
07-25-07 10:18 vda Note Added: 0002639
07-25-07 10:18 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker