Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 640.640
Procedure: dcc_server_init
Trace: View
Modified: Wed Sep 2 11:35:48 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_init
 392  
 393         cmd_params_free(free_arg);
 394 }
 395  
 396 void dcc_server_init(void) 
 397 {
 398         dcc_register_type("SERVER");
 399         command_bind("dcc server", NULL, (SIGNAL_FUNC) cmd_dcc_server);   /* Dangerous Function Cast (ID: 643.643) */
 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) */
Wrong Number of Parameters402         signal_add_first("dcc server message", (SIGNAL_FUNC) dcc_server_msg);     /* Dangerous Function Cast */
 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) */
 410         signal_remove("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);   /* Dangerous Function Cast (ID: 646.646) */
 411         signal_remove("dcc server message", (SIGNAL_FUNC) dcc_server_msg);   /* Dangerous Function Cast (ID: 647.647) */
 412 }




Change Warning 640.640 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: