Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 613.613
Procedure: dcc_get_listen
Trace: View
Modified: Wed Sep 2 11:35:36 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_listen
 316         g_source_remove(dcc->tagconn);
 317         dcc->tagconn = -1;
 318  
 319         dcc->starttime = time(NULL);
 320         dcc->handle = handle;
 321         memcpy(&dcc->addr, &addr, sizeof(IPADDR));
 322         net_ip2host(&dcc->addr, dcc->addrstr);
 323         dcc->port = port;
 324  
 325         dcc->tagconn = g_input_add(handle, G_INPUT_READ | G_INPUT_WRITE,
Wrong Number of Parameters326                                    (GInputFunction) sig_dccget_connected, dcc);     /* Dangerous Function Cast */
 327 
 328  
 329 void dcc_get_passive(GET_DCC_REC *dcc)
 330 {
 331         GIOChannel *handle;
 332         IPADDR own_ip;
 333         int port;
 334         char host[MAX_IP_LEN];
 335  
 336         handle = dcc_listen(net_sendbuffer_handle(dcc->server->handle),   /* Null Pointer Dereference (ID: 2206.2212) */




Change Warning 613.613 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: