Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at net-nonblock.c:259

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 790.26236
Procedure: simple_readpipe
Trace: view
Modified: Thu Nov 26 10:57:44 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-nonblock.c
   Enter simple_readpipe
 249         g_free_not_null(rec->my_ip);
 250  
 251         if (handle == NULL) {
 252                 /* failed */ 
 253                 rec->func(NULL, rec->data);
 254                 g_free(rec);
 255                 return;
 256         }
 257  
 258         rec->tag = g_input_add(handle, G_INPUT_READ | G_INPUT_WRITE,
Wrong Number of Parameters259                                (GInputFunction) simple_init, rec);     /* Dangerous Function Cast */
 260 } 
 261  
 262 /* Connect to server, call func when finished */ 
 263 int net_connect_nonblock(const char *server, int port, const IPADDR *my_ip,
 264                          NET_CALLBACK func, void *data)
 265 {
 266         SIMPLE_THREAD_REC *rec;
 267         int fd[2];
 268  
 269         g_return_val_if_fail(server != NULL, FALSE);




Change Warning 790.26236 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: