Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at dcc-get.c:105

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 609.609
Procedure: dcc_get_send_received
Trace: View
Modified: Wed Sep 2 11:35:34 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
   /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/irc/dcc/dcc-get.c
   Enter dcc_get_send_received
 95                 net_transmit(dcc->handle, dcc->count_buf+dcc->count_pos,
 96                              4-dcc->count_pos);
 97         if (dcc->count_pos == 4) dcc->count_pos = 0;
 98  
 99         /* count_pos might be -1 here. if this happens, the 
 100            count_buf should be re-sent.. also, if it's 1, 2 or 3, the 
 101            last 1-3 bytes should be sent later. these happen probably 
 102            never, but I just want to do it right.. :) */ 
 103         if (dcc->tagwrite == -1) {
 104                 dcc->tagwrite = g_input_add(dcc->handle, G_INPUT_WRITE,
Wrong Number of Parameters105                                             (GInputFunction) sig_dccget_send,     /* Dangerous Function Cast */
 106                                             dcc);
 107         }
 108 
 109  
 110 /* input function: DCC GET is free to send data */ 
 111 static void sig_dccget_send(GET_DCC_REC *dcc)
 112 {
 113         guint32 recd;
 114         int ret;
 115  




Change Warning 609.609 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: