[BusyBox 0000449]: Uninitialized variable in hush shell

bugs at busybox.net bugs at busybox.net
Thu Dec 15 02:49:40 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=449 
====================================================================== 
Reported By:                wd
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   449
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             09-27-2005 16:45 PDT
Last Modified:              12-14-2005 18:49 PST
====================================================================== 
Summary:                    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...
====================================================================== 

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




More information about the busybox-cvs mailing list