Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 489.29266
Similar Warnings: 489.29262
Procedure: checkoutput
Trace: view
Modified: Thu Nov 26 11:36:32 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  
 271         if (n > 0) {   /* Uninitialized Variable (ID: 22175.29267) */
tid is uninitialized272                 if (!(op = obuf_find(jp, tid))) {     /* Uninitialized Variable */
Preconditions
&$unknown_12131815 != 0
&$unknown_12131816 >= 1
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmtoplvl != 0
$input_677236 <= 97
$input_677236 >= 0
Postconditions
((char*)$unknown_12131808)[4]' = ((char*)&$unknown_12131808)[4]
((char*)$unknown_12131808)[4]' = $unknown_12131808
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
$unknown_12131808' = &$unknown_12131808
((char*)&$unknown_12131808)[16]' = 0
((char*)&$unknown_12131808)[20]' = 1
((char*)&$unknown_12131808)[24]' = 0
((char*)&$unknown_12131808)[28]' = 0
((char*)&$unknown_12131808)[32]' = 0
((char*)&$unknown_12131808)[36]' = 0
((char*)&$unknown_12131808)[40]' = 0
((char*)&$unknown_12131808)[4]' = &$unknown_12131808
((char*)&$unknown_12131808)[44]' = 0
((char*)&$unknown_12131808)[48]' = 0
((char*)&$unknown_12131808)[52]' = 0
((char*)&$unknown_12131808)[56]' = 0
((char*)&$unknown_12131808)[60]' = 0
((char*)&$unknown_12131808)[64]' = 0
((char*)&$unknown_12131808)[8]' = 0
((char*)&$unknown_12131808)[12]' = 0
errno' != 0
freepmsgs.m_link' = &$unknown_12131808
$heap_440396' = &$heap_440396
bytes_after(&$heap_440396)' = 64
$heap_440396' is allocated by malloc
$heap_440396' is allocated
bytes_before(&$heap_440396)' = 0
((char*)&$heap_440396)[4]' = &$heap_440396
$heap_440397' = $input_677244
bytes_after(&$heap_440397)' = $input_677236 + 1
$heap_440397' is allocated by malloc
$heap_440397' is a non-heap object
bytes_before(&$heap_440397)' = 0
strlen(&$heap_440397)' = $input_677236
myfmt' != -1
n' = &$unknown_12131816
pvm_errno' = -15
pvm_useruid' != -1
pvmmydsig' = myfmt'
pvmmytid' = -1
pvmrbuf' = &$unknown_12131815
pvmrxlist' = &$unknown_12131808
pvmtrc.trctid' >= 1
pvmtrccodef' = &$unknown_12131814
td' = &$heap_440397
ttlist' = &$heap_440396




Change Warning 489.29266 : Uninitialized Variable

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