Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1287.26733
Procedure: cmd_dcc_chat
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 cmd_dcc_chat
 489         if (g_hash_table_lookup(optlist, "passive") == NULL) {
 490                 /* Standard DCC CHAT... let's listen for incoming connections */ 
 491                 handle = dcc_listen(net_sendbuffer_handle(server->handle),
 492                                     &own_ip, &port);
 493                 if (handle == NULL)
 494                         cmd_param_error(CMDERR_ERRNO);
 495  
 496                 dcc->handle = handle;
 497                 dcc->tagconn = 
 498                         g_input_add(dcc->handle, G_INPUT_READ,
Wrong Number of Parameters499                                     (GInputFunction) dcc_chat_listen, dcc);     /* Dangerous Function Cast */
 500  
 501                 /* send the chat request */ 
 502                 signal_emit("dcc request send", 1, dcc);
 503  
 504                 dcc_ip2str(&own_ip, host);
 505                 irc_send_cmdv(server, "PRIVMSG %s :\001DCC CHAT CHAT %s %d\001",
 506                               nick, host, port);
 507         } else {
 508                 /* Passive protocol... we want the other side to listen */ 
 509                 /* send the chat request */ 




Change Warning 1287.26733 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: