Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2863.2928
Similar Warnings: 2863.2929
Procedure: trc_handle_trace_message
Trace: View
Modified: Wed Sep 2 12:50:57 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_handle_trace_message
true377 trc_handle_trace_message( ID, src ) 
 378 TRC_ID ID;
 379 int src;
 380 {
 381         TRC_DATADESC DD;
 382  
 383         TRC_TEVDESC TD;
 384  
 385         TRC_TEVTASK TT;
 386  
 387         TRC_HOST H;
   ...
 404         int tusec;
 405         int tsec;
 406         int ecnt;
 407         int eid;
 408         int tid;
 409         int dt;
 410  
 411         int marker;
 412         int nest;
 413  
 414         ecnt = 0;
 415  
 416         TRC_PVMCKERR( pvm_upkint( &marker, 1, 1 ),
 417                 "Unpacking Trace Message", return( ecnt ) );
 418  
 419         /* Old PVM 3.3 Trace Format */ 
 420  
 421         if ( marker > 0 )
 422         {
 423                 tsec = marker;
 424  
 425                 TRC_PVMCKERR( pvm_upkint( &tusec, 1, 1 ),
 426                         "Event Parse Error", return( ecnt ) );
 427  
 428                 TRC_PVMCKERR( pvm_upkint( &tid, 1, 1 ),
 429                         "Event Parse Error", return( ecnt ) );
 430  
 431                 TRC_PVMCKERR( pvm_upkint( &eid, 1, 1 ),
 432                         "Event Parse Error", return( ecnt ) );
 433  
tusec is uninitialized434                 ecnt += trc_store_old_trace_event( ID, tsec, tusec, tid, eid );     /* Uninitialized Variable */
Preconditions
&$unknown_2875948 >= 1
myfmt != -1
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmmytid = -1
pvmrbuf != 0
pvmtoplvl != 0
pvmtrc.trctid >= 1
Postconditions
ID' = $param_1
TRC_TMP_CC' = 0
ecnt' = 0
marker' = &$unknown_2875948
pvmtrc.trctid' >= 1
pvmtrccodef' = &$unknown_2876015
pvmtrcsavekind' = 63
src' = $param_2
tsec' = &$unknown_2875948




Change Warning 2863.2928 : Uninitialized Variable

Because they are very similar, this warning shares annotations with warning 2863.2929.

Priority:
State:
Finding:
Owner:
Note: