| Anonymous | Login | Signup for a new account | 11-10-2008 11:17 PST |
| Main | My View | View Issues | Change Log | Docs |
| 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 | |||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |