Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Uninitialized Variable  at job.c:271

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 22175.29267
Procedure: checkoutput
Trace: view
Modified: Thu Nov 26 11:36:33 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
ProblemLineSource
   /kat0/fletcher/SATE/2010/pvm3/console/job.c
   Enter checkoutput
true252 checkoutput(jp, cc, len, cod, src) 
 253         struct job *jp;
 254         int cc;                                 /* message mid */ 
 255         int len;
 256         int cod;
 257         int src;
 258 {
 259         int tid;                                        /* task */ 
 260         int n;                                          /* length or event code */ 
 261         char *p;
 262         int ptid;
 263         struct obuf *op;
 264         int show;
 265  
 266         show = pvm_getopt( PvmShowTids );
 267  
 268         pvm_upkint(&tid, 1, 1);
 269         pvm_upkint(&n, 1, 1);
 270  
n is uninitialized271         if (n > 0) {     /* Uninitialized Variable */
Preconditions
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmtoplvl != 0
Postconditions
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
errno' != 0
mxfersingle' = 1
pvm_errno' = -15
pvmmytid' != -1
pvmrbuf' = 0
pvmsbuf' = 0
pvmtrc.trctid' <= 0
pvmtrccodef' = &$unknown_12139687
topvmd' = 0




Change Warning 22175.29267 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: