Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Uninitialized Variable  at trcfile.c:1512

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2854.2917
Procedure: trc_unpack_data_value
Trace: View
Modified: Wed Sep 2 12:50:30 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/trcfile.c
   Enter trc_unpack_data_value
true1495 trc_unpack_data_value( DD ) 
 1496 TRC_DATADESC DD;
 1497 {
 1498         char upk_str[TRC_MAX_UNPACK_ARR_SIZE];
 1499  
 1500         int num;
 1501         int i;
 1502  
 1503         if ( DD->array == TEV_DATA_ARRAY )
 1504         {
 1505                 TRC_PVMCKERR( pvm_upkint( &num, 1, 1 ),
 1506                         "Array Unpack", return( TRC_FALSE ) );
 1507         }
 1508  
 1509         else 
 1510                 num = 1;
 1511  
num is uninitialized1512         DD->data = trc_make_value( DD->dt, num );     /* Uninitialized Variable */  /* Leak (ID: 2852.2915) */
Preconditions
((char*)$param_1)[12] = 128
pvmmytid != -1
pvmrbuf = 0
pvmtoplvl != 0
pvmtrc.trctid != pvmmytid
pvmtrc.trctid >= 1
pvmtrc.trcopt <= 3
pvmtrc.trcopt >= 1
Postconditions
DD' = $param_1
TRC_TMP_CC' = 0




Change Warning 2854.2917 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: