Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at net-sendbuffer.c:136

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 792.26238
Procedure: net_sendbuffer_send
Trace: view
Modified: Thu Nov 26 10:57:45 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/core/net-sendbuffer.c
   Enter net_sendbuffer_send
 126                 data = ((const char *) data) + ret;
 127         }
 128  
 129         if (size <= 0)
 130                 return 0;
 131  
 132         /* everything couldn't be sent. */ 
 133         if (rec->send_tag == -1) {
 134                 rec->send_tag = 
 135                         g_input_add(rec->handle, G_INPUT_WRITE,
Wrong Number of Parameters136                                     (GInputFunction) sig_sendbuffer, rec);     /* Dangerous Function Cast */
 137         }
 138  
 139         return buffer_add(rec, data, size) ? 0 : -1;
 140 } 
 141  
 142 int net_sendbuffer_receive_line(NET_SENDBUF_REC *rec, char **str, int read_socket)
 143 {
 144         char tmpbuf[2048];
 145         int recvlen = 0;
 146  




Change Warning 792.26238 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: