Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at dcc-send.c:431

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1329.26775
Procedure: dcc_send_one_file
Trace: view
Modified: Thu Nov 26 10:59:58 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/irssi-0.8.14/src/irc/dcc/dcc-send.c
   Enter dcc_send_one_file
 421         g_free(str);
 422  
 423         dcc->handle = handle;
 424         dcc->port = port;
 425         dcc->size = st.st_size;
 426         dcc->fhandle = hfile;
 427         dcc->queue = queue;
 428         dcc->file_quoted = strchr(fname, ' ') != NULL;
 429         if (!passive) {
 430                 dcc->tagconn = g_input_add(handle, G_INPUT_READ,
Wrong Number of Parameters431                                            (GInputFunction) dcc_send_connected,     /* Dangerous Function Cast */
 432                                            dcc);
 433         }
 434  
 435         /* Generate an ID for this send if using passive protocol */ 
 436         if (passive) {
 437                 dcc->pasv_id = rand() % 64;
 438         }
 439      
 440         /* send DCC request */ 
 441         signal_emit("dcc request send", 1, dcc);




Change Warning 1329.26775 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: