Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Uninitialized Variable  at trcmess.c:338

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2865.2931
Procedure: trc_get_msg
Trace: View
Modified: Wed Sep 2 12:51:20 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/tracer/trcmess.c
   Enter trc_get_msg
true269 trc_get_msg( ID, len, msgtag, src, others ) 
 270 TRC_ID ID;
 271 int *len;
 272 int *msgtag;
 273 int *src;
 274 int *others;
 275 {
 276         int mid;
 277         int tag;
 278  
 279         /* Reset "Others" Flag */ 
 280  
 281         if ( others != NULL )
 282                 *others = TRC_FALSE;
 283  
 284         /* Check for Host Add */ 
 285  
 286         if ( (mid = pvm_nrecv( -1, TRC_HOST_ADD_NOTIFY_CODE )) > 0 )
 287         {
 288                 if ( pvm_bufinfo( mid, len, msgtag, src ) < 0 )
 289                 {
 290                         pvm_perror( "Error Checking Message Buffer);
 291  
 292                         return( -1 );
 293                 }
 294  
 295                 return( mid );
 296         }
 297  
 298         else if ( mid < 0 )
 299         {
 300                 pvm_perror( "Error Checking Host Add Notify Message);
 301  
 302                 return( -1 );
 303         }
 304  
 305         /* Check for Host Delete */ 
 306  
 307         if ( (mid = pvm_nrecv( -1, TRC_HOST_DEL_NOTIFY_CODE )) > 0 )
 308         {
 309                 if ( pvm_bufinfo( mid, len, msgtag, src ) < 0 )
 310                 {
 311                         pvm_perror( "Error Checking Message Buffer);
 312  
 313                         return( -1 );
 314                 }
 315  
 316                 return( mid );
 317         }
 318  
 319         else if ( mid < 0 )
 320         {
 321                 pvm_perror( "Error Checking Host Delete Notify Message);
 322  
 323                 return( -1 );
 324         }
 325  
 326         /* Any message at all? */ 
 327  
 328         if ( (mid = pvm_probe( -1, -1 )) > 0 )
 329         {
 330                 if ( pvm_bufinfo( mid, len, &tag, src ) < 0 )
 331                 {
 332                         pvm_perror( "Error Checking Message Buffer);
 333  
 334                         return( -1 );
 335                 }
 336  
 337                 if ( msgtag != NULL )
tag is uninitialized338                         *msgtag = tag;     /* Uninitialized Variable */
Preconditions
$param_3 != 0
&$unknown_3035087 >= 1
&$unknown_3035126 = $unknown_3035126
&$unknown_3035130 != &$unknown_3035153
&$unknown_3035130 >= 1
&$unknown_3035140 >= 1
&$unknown_3035153 != -1
&$unknown_3035154 != 1
&$unknown_3035154 != 2
&$unknown_3035154 != 3
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmtoplvl != 0
Postconditions
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
ID' = $param_1
errno' != 0
len' = $param_2
mid' = &$unknown_3035087
msgtag' = $param_3
newline' = 0
others' = $param_5
pvm_errno' = -2
pvmmytid' = &$unknown_3035153
pvmtrc.trctid' = &$unknown_3035130
pvmtrc.trcopt' = &$unknown_3035154
pvmtrccodef' = &pvmtrccodef_nop.enc_byte
src' = $param_4
topvmd' = 0
ttlist' = &$unknown_3035126




Change Warning 2865.2931 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: