Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2867.2933
Procedure: trc_handle_output_message
Trace: View
Modified: Wed Sep 2 12:51:22 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_output_message
true791 trc_handle_output_message( ID ) 
 792 TRC_ID ID;
 793 {
 794         TRC_TEVTASK TT;
 795  
 796         char tmp[255];
 797         char msg[255];
 798  
 799         char *output;
 800  
 801         int ecnt;
 802         int omit;
 803         int len;
 804         int tid;
 805  
 806         ecnt = 0;
 807  
 808         TRC_PVMCKERR( pvm_upkint( &tid, 1, 1 ),
 809                 "Error Unpacking Output Message", return( ecnt ) );
 810  
 811         TRC_PVMCKERR( pvm_upkint( &len, 1, 1 ),
 812                 "Error Unpacking Output Length", return( ecnt ) );
 813  
 814         /* Set Leftover Event Omit Flag */ 
 815  
 816         TT = trc_get_tevtask_tid( ID, tid );   /* Uninitialized Variable (ID: 2868.2934) */
 817  
 818         omit = ( ID->trace_out == NULL 
 819                 || ( TT != NULL && TRC_TASK_OMIT( TT ) ) ) 
 820                         ? TRC_TRUE : TRC_FALSE;
 821  
 822         /* Unpack Output */ 
 823  
len is uninitialized824         if ( len > 0 )     /* Uninitialized Variable */
Preconditions
((char*)$param_1)[40] != 0
((char*)&$unknown_3037934)[4] != 4
((char*)&$unknown_3037934)[8] != 3
pvmmytid != -1
pvmrbuf = 0
pvmtoplvl != 0
pvmtrc.trctid != pvmmytid
pvmtrc.trctid >= 1
pvmtrc.trcopt <= 3
pvmtrc.trcopt >= 1
tid != ((char*)*$param_1)[24]
Postconditions
ID' = $param_1
TRC_TMP_CC' = 0
TT' = &$unknown_3037934
ecnt' = 0
omit' = 0




Change Warning 2867.2933 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: