Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Uninitialized Variable  at trcfile.c:2407

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 442.29199
Procedure: trc_dump_trace_str
Trace: view
Modified: Thu Nov 26 11:35:55 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/trcfile.c
   Enter trc_write_host_del_event
true2125 trc_write_host_del_event( ID, H, tid ) 
 2126 TRC_ID ID;
 2127 TRC_HOST H;
 2128 int tid;
 2129 {
 2130  
 2131 #ifdef USE_PVM_33 
 2132  
 2133         trc_write_old_host_del_event( ID, H, tid ); 
 2134  
 2135 #else 
 2136  
 2137         char tmp[1024];
 2138  
 2139         if ( TRC_HOST_DEL_TEVDESC->dump )
 2140                 trc_dump_tevdesc( ID, TRC_HOST_DEL_TEVDESC, tid );
 2141  
 2142         trc_store_event_header( ID, TRC_HOST_DEL_TEVDESC, tid );
 2143  
 2144         fprintf( ID->trace_out, "%d, %ld, %d",
 2145                 TRC_TRACE_TIME.tv_sec, TRC_TRACE_TIME.tv_usec, tid );
 2146  
 2147         if ( strcmp( H->refname, "" ) )
 2148         {
 2149                 sscanf( H->refname, "%s", tmp );   /* Buffer Overrun (ID: 443.29200) */
 2150  
tmp is uninitialized2151                 trc_dump_trace_str( ID, tmp, TRC_TRUE );
     Enter trc_write_host_del_event / trc_dump_trace_str
 2399   trc_dump_trace_str( ID, str, comma_flag ) 
 2400   TRC_ID ID;
 2401   char *str;
 2402   int comma_flag;
 2403   {
 2404           if ( comma_flag )
 2405           {
 2406                   fprintf( ID->trace_out, ", [%u] { \"%s\" }",
*str is uninitialized2407                           (unsigned) ( strlen( str ) + 1 ), str );     /* Uninitialized Variable */  /* 3 more... */
     Exit trc_write_host_del_event / trc_dump_trace_str
Preconditions
TRC_HOST_DEL_TEVDESC->dump != 0
TRC_HOST_DEL_TEVDESC->ddesc = 0
TRC_HOST_DEL_TEVDESC->index <= -1
*str[8] <= 0
Postconditions
TRC_HOST_DEL_TEVDESC->dump' = 0
ID' = ID
$unknown_11895706' is allocated by fopen
bytes_before(&$unknown_11895706)' = 0
comma_flag' = 1
errno' != 0
str' = &tmp[0]




Change Warning 442.29199 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: