Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 577.577
Procedure: sig_chat_connected
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 sig_chat_connected
 366                 return;
 367         }
 368  
 369         /* connect ok. */ 
 370         g_source_remove(dcc->tagconn);
 371         dcc->tagconn = -1;
 372  
 373         dcc->starttime = time(NULL);
 374         dcc->sendbuf = net_sendbuffer_create(dcc->handle, 0);
 375         dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ,
Wrong Number of Parameters376                                    (GInputFunction) dcc_chat_input, dcc);     /* Dangerous Function Cast */
 377  
 378         signal_emit("dcc connected", 1, dcc);
 379 
 380  
 381 static void dcc_chat_connect(CHAT_DCC_REC *dcc)
 382 {
 383         g_return_if_fail(IS_DCC_CHAT(dcc));
 384  
 385         if (dcc->addrstr[0] == '\0' ||
 386             dcc->starttime != 0 || dcc->handle != NULL) {




Change Warning 577.577 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: