Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at dcc-get.c:584

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 615.615
Procedure: dcc_get_init
Trace: View
Modified: Wed Sep 2 11:35:36 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-get.c
   Enter dcc_get_init
 574  
 575 void dcc_get_init(void) 
 576 {
 577         dcc_register_type("GET");
 578         settings_add_bool("dcc", "dcc_autorename", FALSE);
 579         settings_add_str("dcc", "dcc_download_path", "~");
 580         settings_add_int("dcc", "dcc_file_create_mode", 644);
 581  
 582         signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);   /* Dangerous Function Cast (ID: 616.616) */
 583         signal_add("ctcp msg dcc send", (SIGNAL_FUNC) ctcp_msg_dcc_send);
Wrong Number of Parameters584         command_bind("dcc get", NULL, (SIGNAL_FUNC) cmd_dcc_get);     /* Dangerous Function Cast */
 585 
 586  
 587 void dcc_get_deinit(void)
 588 {
 589         dcc_unregister_type("GET");
 590         signal_remove("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);   /* Dangerous Function Cast (ID: 618.618) */
 591         signal_remove("ctcp msg dcc send", (SIGNAL_FUNC) ctcp_msg_dcc_send);
 592         command_unbind("dcc get", (SIGNAL_FUNC) cmd_dcc_get);   /* Dangerous Function Cast (ID: 617.617) */
 593 }




Change Warning 615.615 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: