Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Uninitialized Variable  at lpvmcat.c:365

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2778.2838
Similar Warnings: 2778.2834, 2778.2835, 2778.2837
Procedure: pvmclaimo
Trace: View
Modified: Wed Sep 2 12:46:25 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/src/lpvmcat.c
   Enter pvmclaimo
true340 pvmclaimo(mid) 
 341         int mid;
 342 {
 343         int tid;                                        /* task */ 
 344         int n;                                          /* length or event code */ 
 345         char *p;
 346         int ptid;
 347         struct tobuf *op;
 348  
 349 /*
 350         if (TRACE) {
 351                 checktrace(jp, cc, len, cod, src);
 352                 return 0;
 353         }
 354 */ 
 355  
 356         pvm_upkint(&tid, 1, 1);
 357         pvm_upkint(&n, 1, 1);
 358  
 359         if (!tobuflist) {
 360                 pvmlogprintf("pvmclaimo() message from task t%x\n", tid);   /* Uninitialized Variable (ID: 2781.2840) */
 361                 goto done;
 362         }
 363  
 364         if (n > 0) {    /* output printed by task */   /* Uninitialized Variable (ID: 2780.2839) */
tid is uninitialized365                 if (!(op = tobuf_find(tid))) {     /* Uninitialized Variable */
Preconditions
&$unknown_1592155 != 0
&$unknown_1592156 >= 1
myfmt != -1
pvmautoerr = 0
pvmmytid = -1
pvmrbuf = 0
pvmtoplvl != 0
tobuflist != 0
Postconditions
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
mid' = $param_1
n' = &$unknown_1592156
pvm_errno' = -15
pvmmytid' != -1
pvmrbuf' = &$unknown_1592155
pvmtrc.trctid' >= 1
td' = &#string21[0]




Change Warning 2778.2838 : Uninitialized Variable

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