Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 446.29203
Procedure: trc_handle_output_message
Trace: view
Modified: Thu Nov 26 11:36:03 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_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: 447.29204) */
 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
ID->trace_out != 0
((char*)&$unknown_11970366)[4] != 4
((char*)&$unknown_11970366)[8] != 3
myfmt != -1
pvmautoerr != 0
pvmautoerr != 2
pvmautoerr != 3
pvmmytid = -1
pvmrbuf = 0
pvmtoplvl != 0
pvmtrc.trctid >= 1
tid != ID->tevtask_list->tid
Postconditions
*stderr' is allocated by fopen
bytes_before(stderr)' = 0
TRC_TMP_CC' = 0
TT' = &$unknown_11970366
ecnt' = 0
omit' = 0
pvmtrccodef' = &$unknown_11970365




Change Warning 446.29203 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: