Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at commands.c:986

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 11.11
Procedure: commands_init
Trace: View
Modified: Wed Sep 2 11:31:17 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/core/commands.c
   Enter commands_init
 976 {
 977         commands = NULL;
 978         current_command = NULL;
 979         alias_runstack = NULL;
 980  
 981         signal_default_command = signal_get_uniq_id("default command");
 982  
 983         settings_add_str("misc", "cmdchars", "/");
 984         signal_add("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 12.12) */
 985  
Wrong Number of Parameters986         command_bind("eval", NULL, (SIGNAL_FUNC) cmd_eval);     /* Dangerous Function Cast */
 987         command_bind("cd", NULL, (SIGNAL_FUNC) cmd_cd);   /* Dangerous Function Cast (ID: 10.10) */
 988 
 989  
 990 void commands_deinit(void)
 991 {
 992         g_free_not_null(current_command);
 993  
 994         signal_remove("send command", (SIGNAL_FUNC) event_command);   /* Dangerous Function Cast (ID: 15.15) */
 995  
 996         command_unbind("eval", (SIGNAL_FUNC) cmd_eval);   /* Dangerous Function Cast (ID: 14.14) */




Change Warning 11.11 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: