Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Buffer Overrun  at cmds.c:1189

Categories: LANG.MEM.BO CWE:120 CWE:121 CWE:122 CWE:126
Warning ID: 501.29293
Procedure: do_rsh_cmd
Trace: view
Modified: Thu Nov 26 11:36:50 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/console/cmds.c
   Enter do_rsh_cmd
 1168 do_rsh_cmd( hp, label, cmd, result, rsize ) 
 1169 struct hostd *hp;
 1170 char *label;
 1171 char *cmd;
 1172 char *result;
 1173 int rsize;
 1174 {
 1175         FILE *fp;
 1176  
 1177         char tcmd[1024];
 1178         char tmp[255];
 1179  
 1180         int ret = 1;
 1181         int len;
 1182  
 1183         /* Dump Test Label */ 
 1184  
$input_12 > 10221185         printf( "%s Host \"%s\"...\n", label, hp->hd_name );
 1186  
 1187         /* Construct Rsh Command */ 
 1188  
 1189         sprintf( tcmd, "%s ", pvmgetrsh() );     /* Buffer Overrun */  /* Buffer Overrun (ID: 502.29294) */
Preconditions
rd = 0
$input_12 >= 0
Postconditions
$heap_443592' = $input_444
bytes_after(&$heap_443592)' = $input_12 + 1
$heap_443592' is allocated by malloc
$heap_443592' is a non-heap object
bytes_before(&$heap_443592)' = 0
strlen(&$heap_443592)' = $input_12
rd' = &$heap_443592
ret' = 1




Change Warning 501.29293 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: