Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-core-commands.c:338

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 862.862
Procedure: fe_core_commands_deinit
Trace: View
Modified: Wed Sep 2 11:37: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/fe-common/core/fe-core-commands.c
   Enter fe_core_commands_deinit
 328         signal_add("list subcommands", (SIGNAL_FUNC) event_list_subcommands);   /* Dangerous Function Cast (ID: 852.852) */
 329  
 330         command_set_options("echo", "current +level +window");
 331 }
 332  
 333 void fe_core_commands_deinit(void) 
 334 {
 335         command_unbind("echo", (SIGNAL_FUNC) cmd_echo);   /* Dangerous Function Cast (ID: 854.854) */
 336         command_unbind("version", (SIGNAL_FUNC) cmd_version);   /* Dangerous Function Cast (ID: 853.853) */
 337         command_unbind("cat", (SIGNAL_FUNC) cmd_cat);   /* Dangerous Function Cast (ID: 863.863) */
Wrong Number of Parameters338         command_unbind("beep", (SIGNAL_FUNC) cmd_beep);     /* Dangerous Function Cast */
 339         command_unbind("uptime", (SIGNAL_FUNC) cmd_uptime);   /* Dangerous Function Cast (ID: 861.861) */
 340         command_unbind("nick", (SIGNAL_FUNC) cmd_nick);   /* Dangerous Function Cast (ID: 860.860) */
 341  
 342         signal_remove("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 859.859) */
 343         signal_remove("send command", (SIGNAL_FUNC) event_command_last);   /* Dangerous Function Cast (ID: 858.858) */
 344         signal_remove("default command", (SIGNAL_FUNC) event_default_command);   /* Dangerous Function Cast (ID: 857.857) */
 345         signal_remove("error command", (SIGNAL_FUNC) event_cmderror);   /* Dangerous Function Cast (ID: 856.856) */
 346         signal_remove("list subcommands", (SIGNAL_FUNC) event_list_subcommands);   /* Dangerous Function Cast (ID: 855.855) */
 347 




Change Warning 862.862 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: