Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 22166.29195
Similar Warnings: 22166.29196, 22166.29197
Procedure: trc_handle_trace_message
Trace: view
Modified: Thu Nov 26 11:35:54 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_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 )   /* Uninitialized Variable (ID: 22167.29198) */
 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_11801429 >= 1
myfmt != -1
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmmytid = -1
pvmrbuf != 0
pvmtoplvl != 0
pvmtrc.trctid >= 1
Postconditions
TRC_TMP_CC' = 0
ecnt' = 0
marker' = &$unknown_11801429
pvmtrc.trctid' >= 1
pvmtrccodef' = &pvmtrccodef_nop.enc_byte
pvmtrcsavekind' = 63
tsec' = &$unknown_11801429




Change Warning 22166.29195 : Uninitialized Variable

Because they are very similar, this warning shares annotations with warnings 22166.29196 and 22166.29197.

Priority:
State:
Finding:
Owner:
Note: