Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at dcc-server.c:410

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 646.646
Procedure: dcc_server_deinit
Trace: View
Modified: Wed Sep 2 11:35:51 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-server.c
   Enter dcc_server_deinit
 400         command_bind("dcc close", NULL, (SIGNAL_FUNC) cmd_dcc_close);   /* Dangerous Function Cast (ID: 641.641) */
 401         signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);   /* Dangerous Function Cast (ID: 642.642) */
 402         signal_add_first("dcc server message", (SIGNAL_FUNC) dcc_server_msg);   /* Dangerous Function Cast (ID: 640.640) */
 403 }
 404  
 405 void dcc_server_deinit(void) 
 406 {
 407         dcc_unregister_type("SERVER");
 408         command_unbind("dcc server", (SIGNAL_FUNC) cmd_dcc_server);   /* Dangerous Function Cast (ID: 644.644) */
 409         command_unbind("dcc close", (SIGNAL_FUNC) cmd_dcc_close);   /* Dangerous Function Cast (ID: 645.645) */
Wrong Number of Parameters410         signal_remove("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);     /* Dangerous Function Cast */
 411         signal_remove("dcc server message", (SIGNAL_FUNC) dcc_server_msg);   /* Dangerous Function Cast (ID: 647.647) */
 412 
 413  




Change Warning 646.646 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: