Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-core-commands.c:326

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1578.26995
Procedure: fe_core_commands_init
Trace: view
Modified: Thu Nov 26 11:00:52 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
   /kat0/fletcher/SATE/2010/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: 1590.27003) */
 318         command_bind("version", NULL, (SIGNAL_FUNC) cmd_version);   /* Dangerous Function Cast (ID: 1589.27002) */
 319         command_bind("cat", NULL, (SIGNAL_FUNC) cmd_cat);   /* Dangerous Function Cast (ID: 1588.27001) */
 320         command_bind("beep", NULL, (SIGNAL_FUNC) cmd_beep);   /* Dangerous Function Cast (ID: 1585.27000) */
 321         command_bind("uptime", NULL, (SIGNAL_FUNC) cmd_uptime);   /* Dangerous Function Cast (ID: 1583.26999) */
 322         command_bind_first("nick", NULL, (SIGNAL_FUNC) cmd_nick);   /* Dangerous Function Cast (ID: 1582.26998) */
 323  
 324         signal_add("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 1581.26997) */
 325         signal_add_last("send command", (SIGNAL_FUNC) event_command_last);   /* Dangerous Function Cast (ID: 1579.26996) */
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: 1577.26994) */
 328         signal_add("list subcommands", (SIGNAL_FUNC) event_list_subcommands);   /* Dangerous Function Cast (ID: 1591.27004) */
 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: 1596.27006) */
 336         command_unbind("version", (SIGNAL_FUNC) cmd_version);   /* Dangerous Function Cast (ID: 1593.27005) */




Change Warning 1578.26995 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: