Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Uninitialized Variable  at job.c:272

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2901.2973
Similar Warnings: 2901.2969
Procedure: checkoutput
Trace: View
Modified: Wed Sep 2 12:52:22 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
   /u1/paul/SATE/2010/c/pvm/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  
 271         if (n > 0) {   /* Uninitialized Variable (ID: 2904.2974) */
tid is uninitialized272                 if (!(op = obuf_find(jp, tid))) {     /* Uninitialized Variable */
Preconditions
&$unknown_3197004 != 0
&$unknown_3197006 >= 1
pvmautoerr = 0
pvmtoplvl != 0
Postconditions
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
cc' = $param_2
cod' = $param_4
jp' = $param_1
len' = $param_3
n' = &$unknown_3197006
pvm_errno' = -15
pvmmytid' != -1
pvmrbuf' = &$unknown_3197004
pvmtrc.trctid' >= 1
pvmtrccodef' = &$unknown_3197005
src' = $param_5
td' = &#string21[0]




Change Warning 2901.2973 : Uninitialized Variable

Because they are very similar, this warning shares annotations with warning 2901.2969.
CodeSonar has selected warning 2901.2969 to represent this group of similar warnings. In order to edit this group, you must edit warning 2901.2969.