Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1615.27014
Procedure: fe_core_commands_deinit
Trace: view
Modified: Thu Nov 26 11:00:58 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_deinit
 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) */
 337         command_unbind("cat", (SIGNAL_FUNC) cmd_cat);   /* Dangerous Function Cast (ID: 1618.27015) */
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: 1612.27013) */
 340         command_unbind("nick", (SIGNAL_FUNC) cmd_nick);   /* Dangerous Function Cast (ID: 1610.27012) */
 341  
 342         signal_remove("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 1606.27011) */
 343         signal_remove("send command", (SIGNAL_FUNC) event_command_last);   /* Dangerous Function Cast (ID: 1604.27010) */
 344         signal_remove("default command", (SIGNAL_FUNC) event_default_command);   /* Dangerous Function Cast (ID: 1601.27009) */
 345         signal_remove("error command", (SIGNAL_FUNC) event_cmderror);   /* Dangerous Function Cast (ID: 1599.27008) */
 346         signal_remove("list subcommands", (SIGNAL_FUNC) event_list_subcommands);   /* Dangerous Function Cast (ID: 1598.27007) */
 347 } 




Change Warning 1615.27014 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: