Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at dcc-chat.c:395

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 578.578
Procedure: dcc_chat_connect
Trace: View
Modified: Wed Sep 2 11:35:22 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-chat.c
   Enter dcc_chat_connect
 385         if (dcc->addrstr[0] == '\0' ||
 386             dcc->starttime != 0 || dcc->handle != NULL) {
 387                 /* already sent a chat request / already chatting */ 
 388                 return;
 389         }
 390  
 391         dcc->handle = dcc_connect_ip(&dcc->addr, dcc->port);
 392         if (dcc->handle != NULL) {
 393                 dcc->tagconn = g_input_add(dcc->handle,
 394                                            G_INPUT_WRITE | G_INPUT_READ,
Wrong Number of Parameters395                                            (GInputFunction) sig_chat_connected, dcc);     /* Dangerous Function Cast */
 396         } else {
 397                 /* error connecting */ 
 398                 signal_emit("dcc error connect", 1, dcc);
 399                 dcc_destroy(DCC(dcc));
 400         }
 401 
 402  
 403 static void dcc_chat_passive(CHAT_DCC_REC *dcc)
 404 {
 405         IPADDR own_ip;




Change Warning 578.578 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: