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: 473.29239
Procedure: trc_dump_trace_str
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
true743 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  
 750         if ( !( TRC_OLD_TEV_TRACE[ TRC_OLD_TRACE_HOST_DEL ] ) )
 751         {
 752                 fprintf( ID->trace_out, "\n" );
 753  
 754                 if ( ID->event_dump_hdr )
 755                         (ID->event_dump_hdr)( ID, tid );
 756  
 757                 fprintf( ID->trace_out, "#%d: %s\n",
 758                         TRC_OLD_TRACE_HOST_DEL + 1,
 759                         TRC_OLD_TRACE_DESCRIPTORS[ TRC_OLD_TRACE_HOST_DEL ] );
 760  
 761                 (TRC_OLD_TEV_TRACE[ TRC_OLD_TRACE_HOST_DEL ])++;
 762         }
 763  
 764         if ( ID->event_dump_hdr )
 765                 (ID->event_dump_hdr)( ID, tid );
 766  
 767         fprintf( ID->trace_out, "\"%s\" { %d, %ld, %d",
 768                 TRC_OLD_TEV_TRACE_NAMES[ TRC_OLD_TRACE_HOST_DEL ],
 769                 TRC_TRACE_TIME.tv_sec, TRC_TRACE_TIME.tv_usec, tid );
 770  
 771         if ( strcmp( H->refname, "" ) )
 772         {
 773                 sscanf( H->refname, "%s", tmp );   /* Buffer Overrun (ID: 474.29240) */
 774  
tmp is uninitialized775                 trc_dump_trace_str( ID, tmp, TRC_TRUE );
     /kat0/fletcher/SATE/2010/pvm3/tracer/trcfile.c
     Enter trc_write_old_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_old_host_del_event / trc_dump_trace_str
Preconditions
*str[8] <= 0
TRC_OLD_TEV_TRACE[184] = 0
Postconditions
ID' = ID
TRC_OLD_TEV_TRACE[184]' = TRC_OLD_TEV_TRACE[184] + 1
$unknown_12091327' is allocated by fopen
bytes_before(&$unknown_12091327)' = 0
comma_flag' = 1
errno' != 0
str' = &tmp[0]




Change Warning 473.29239 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: