Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 843.843
Procedure: fe_core_commands_init
Trace: View
Modified: Wed Sep 2 11:37:15 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_init
 316  
 317         command_bind("echo", NULL, (SIGNAL_FUNC) cmd_echo);   /* Dangerous Function Cast (ID: 851.851) */
 318         command_bind("version", NULL, (SIGNAL_FUNC) cmd_version);   /* Dangerous Function Cast (ID: 850.850) */
 319         command_bind("cat", NULL, (SIGNAL_FUNC) cmd_cat);   /* Dangerous Function Cast (ID: 849.849) */
 320         command_bind("beep", NULL, (SIGNAL_FUNC) cmd_beep);   /* Dangerous Function Cast (ID: 848.848) */
 321         command_bind("uptime", NULL, (SIGNAL_FUNC) cmd_uptime);   /* Dangerous Function Cast (ID: 847.847) */
 322         command_bind_first("nick", NULL, (SIGNAL_FUNC) cmd_nick);   /* Dangerous Function Cast (ID: 846.846) */
 323  
 324         signal_add("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 845.845) */
 325         signal_add_last("send command", (SIGNAL_FUNC) event_command_last);   /* Dangerous Function Cast (ID: 844.844) */
Wrong Number of Parameters326         signal_add("default command", (SIGNAL_FUNC) event_default_command);     /* Dangerous Function Cast */
 327         signal_add("error command", (SIGNAL_FUNC) event_cmderror);   /* Dangerous Function Cast (ID: 842.842) */
 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) */




Change Warning 843.843 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: