Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 576.576
Procedure: dcc_chat_listen
Trace: View
Modified: Wed Sep 2 11:35:21 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_listen
 342         g_source_remove(dcc->tagconn);
 343         dcc->tagconn = -1;
 344  
 345         dcc->starttime = time(NULL);
 346         dcc->handle = handle;
 347         dcc->sendbuf = net_sendbuffer_create(handle, 0);
 348         memcpy(&dcc->addr, &ip, sizeof(IPADDR));
 349         net_ip2host(&dcc->addr, dcc->addrstr);
 350         dcc->port = port;
 351         dcc->tagread = g_input_add(handle, G_INPUT_READ,
Wrong Number of Parameters352                                    (GInputFunction) dcc_chat_input, dcc);     /* Dangerous Function Cast */
 353  
 354         signal_emit("dcc connected", 1, dcc);
 355 
 356  
 357 /* callback: DCC CHAT - net_connect_nonblock() finished */ 
 358 static void sig_chat_connected(CHAT_DCC_REC *dcc)
 359 {
 360         g_return_if_fail(IS_DCC_CHAT(dcc));
 361  
 362         if (net_geterror(dcc->handle) != 0) {




Change Warning 576.576 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: