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
0000449 [BusyBox] Other major always 09-27-05 16:45 12-14-05 18:49
Reporter wd View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.01
Summary 0000449: Uninitialized variable in hush shell
Description Under certain conditions the execution of a hush script resulted in a "syntax error" message which was not correct. It urned out that the element "r_mode" of "struct pipe" was uninitialized - it gets set in done_pipe(), but this function calls new_pipe() which allocates a new object "struct pipe" without initializing r_mode. In our test case "r_mode" happenend to contain "6" which is RES_FOR, so hush expected to find a "for" loop which was not present...
Additional Information The attached patch fixes the problem.

Credits go to Lars Rostock who found both the bug and the solution.
Attached Files  patch [^] (343 bytes) 09-27-05 16:45

- Relationships

- Notes
(0000767)
landley
12-14-05 18:49

svn 12842
 

- Issue History
Date Modified Username Field Change
09-27-05 16:45 wd New Issue
09-27-05 16:45 wd Status new => assigned
09-27-05 16:45 wd Assigned To  => BusyBox
09-27-05 16:45 wd File Added: patch
12-14-05 18:49 landley Status assigned => closed
12-14-05 18:49 landley Note Added: 0000767
12-14-05 18:49 landley Resolution open => fixed
12-14-05 18:49 landley Fixed in Version  => svn


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker