Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Buffer Overrun  at trcfile.c:2149

Categories: LANG.MEM.BO CWE:120 CWE:121 CWE:122 CWE:126
Warning ID: 443.29200
Procedure: trc_write_host_del_event
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
$input_559660 >= 81922125 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  
$input_559668 >= 81922139         if ( TRC_HOST_DEL_TEVDESC->dump )
$input_559676 >= 81922140                 trc_dump_tevdesc( ID, TRC_HOST_DEL_TEVDESC, tid );
 2141  
$input_560044 >= 81922142         trc_store_event_header( ID, TRC_HOST_DEL_TEVDESC, tid );
 2143  
$input_560164 >= 81922144         fprintf( ID->trace_out, "%d, %ld, %d",
$input_560140 >= 81922145                 TRC_TRACE_TIME.tv_sec, TRC_TRACE_TIME.tv_usec, tid );
 2146  
$input_560188 >= 81922147         if ( strcmp( H->refname, "" ) )
 2148         {
 2149                 sscanf( H->refname, "%s", tmp );     /* Buffer Overrun */
Preconditions
TRC_HOST_DEL_TEVDESC->dump != 0
TRC_HOST_DEL_TEVDESC->ddesc = 0
TRC_HOST_DEL_TEVDESC->index <= -1
*H->refname <= 0
Postconditions
TRC_HOST_DEL_TEVDESC->dump' = 0
$unknown_11895835' is allocated by fopen
bytes_before(&$unknown_11895835)' = 0




Change Warning 443.29200 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: