Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at dcc-chat.c:425

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1286.26732
Procedure: dcc_chat_passive
Trace: view
Modified: Thu Nov 26 10:59:49 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-chat.c
   Enter dcc_chat_passive
 415                 return;
 416         }
 417  
 418         handle = dcc_listen(net_sendbuffer_handle(dcc->server->handle),
 419                             &own_ip, &port);
 420         if (handle == NULL)
 421                 cmd_return_error(CMDERR_ERRNO);
 422  
 423         dcc->handle = handle;
 424         dcc->tagconn = g_input_add(dcc->handle, G_INPUT_READ,
Wrong Number of Parameters425                                    (GInputFunction) dcc_chat_listen, dcc);     /* Dangerous Function Cast */
 426  
 427         /* Let's send the reply to the other client! */ 
 428         dcc_ip2str(&own_ip, host);
 429         irc_send_cmdv(dcc->server, "PRIVMSG %s :\001DCC CHAT CHAT %s %d %d\001",
 430                       dcc->nick, host, port, dcc->pasv_id);
 431          
 432 } 
 433  
 434 /* SYNTAX: DCC CHAT [-passive] [<nick>] */ 
 435 static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server)




Change Warning 1286.26732 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: