Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Uninitialized Variable  at trcmess.c:342

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 444.29201
Procedure: trc_get_msg
Trace: view
Modified: Thu Nov 26 11:35:59 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/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 )
 338                         *msgtag = tag;   /* Uninitialized Variable (ID: 445.29202) */
 339  
 340                 /* The next one's for us... */ 
 341  
tag is uninitialized342                 if ( tag == ID->event_tag || tag == ID->output_tag )     /* Uninitialized Variable */
Preconditions
msgtag = 0
&$unknown_11934334 >= 1
&$unknown_11934366 >= 1
pvmautoerr != 2
pvmautoerr != 3
pvmtoplvl != 0
Postconditions
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
mid' = &$unknown_11934334
newline' = 1
pvmtrccodef' = &pvmtrccodef_nop.enc_byte




Change Warning 444.29201 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: