Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Buffer Overrun  at trccompat.c:773

Categories: LANG.MEM.BO CWE:120 CWE:121 CWE:122 CWE:126
Warning ID: 474.29240
Procedure: trc_write_old_host_del_event
Trace: view
Modified: Thu Nov 26 11:36:24 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/trccompat.c
   Enter trc_write_old_host_del_event
$input_667684 >= 8192743 trc_write_old_host_del_event( ID, H, tid ) 
 744 TRC_ID ID;
 745 TRC_HOST H;
 746 int tid;
 747 {
 748         char tmp[1024];
 749  
$input_667692 >= 8192750         if ( !( TRC_OLD_TEV_TRACE[ TRC_OLD_TRACE_HOST_DEL ] ) )
 751         {
$input_667700 >= 8192752                 fprintf( ID->trace_out, "\n" );
 753  
$input_667724 >= 8192754                 if ( ID->event_dump_hdr )
$input_667732 >= 8192755                         (ID->event_dump_hdr)( ID, tid );
 756  
$input_667772 >= 8192757                 fprintf( ID->trace_out, "#%d: %s\n",
$input_667764 >= 8192758                         TRC_OLD_TRACE_HOST_DEL + 1,
$input_667756 >= 8192759                         TRC_OLD_TRACE_DESCRIPTORS[ TRC_OLD_TRACE_HOST_DEL ] );
 760  
$input_667796 >= 8192761                 (TRC_OLD_TEV_TRACE[ TRC_OLD_TRACE_HOST_DEL ])++;
 762         }
 763  
$input_667804 >= 8192764         if ( ID->event_dump_hdr )
$input_667812 >= 8192765                 (ID->event_dump_hdr)( ID, tid );
 766  
$input_667868 >= 8192767         fprintf( ID->trace_out, "\"%s\" { %d, %ld, %d",
$input_667860 >= 8192768                 TRC_OLD_TEV_TRACE_NAMES[ TRC_OLD_TRACE_HOST_DEL ],
$input_667836 >= 8192769                 TRC_TRACE_TIME.tv_sec, TRC_TRACE_TIME.tv_usec, tid );
 770  
$input_667892 >= 8192771         if ( strcmp( H->refname, "" ) )
 772         {
 773                 sscanf( H->refname, "%s", tmp );     /* Buffer Overrun */
Preconditions
*H->refname <= 0
TRC_OLD_TEV_TRACE[184] = 0
Postconditions
TRC_OLD_TEV_TRACE[184]' = TRC_OLD_TEV_TRACE[184] + 1
$unknown_12091417' is allocated by fopen
bytes_before(&$unknown_12091417)' = 0




Change Warning 474.29240 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: