|
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 |
|
|