Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at window-commands.c:868

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2323.27338
Procedure: window_commands_deinit
Trace: view
Modified: Thu Nov 26 11:02: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-common/core/window-commands.c
   Enter window_commands_deinit
 858         command_bind("foreach window", NULL, (SIGNAL_FUNC) cmd_foreach_window);   /* Dangerous Function Cast (ID: 2253.27304) */
 859  
 860         command_set_options("window number", "sticky");
 861         command_set_options("window server", "sticky unsticky");
 862         command_set_options("window theme", "delete");
 863 }
 864  
 865 void window_commands_deinit(void) 
 866 {
 867         command_unbind("window", (SIGNAL_FUNC) cmd_window);   /* Dangerous Function Cast (ID: 2325.27339) */
Wrong Number of Parameters868         command_unbind("window new", (SIGNAL_FUNC) cmd_window_new);     /* Dangerous Function Cast */
 869         command_unbind("window close", (SIGNAL_FUNC) cmd_window_close);   /* Dangerous Function Cast (ID: 2321.27337) */
 870         command_unbind("window kill", (SIGNAL_FUNC) cmd_window_close);   /* Dangerous Function Cast (ID: 2318.27336) */
 871         command_unbind("window server", (SIGNAL_FUNC) cmd_window_server);   /* Dangerous Function Cast (ID: 2315.27335) */
 872         command_unbind("window refnum", (SIGNAL_FUNC) cmd_window_refnum);   /* Dangerous Function Cast (ID: 2313.27334) */
 873         command_unbind("window goto", (SIGNAL_FUNC) cmd_window_goto);   /* Dangerous Function Cast (ID: 2311.27333) */
 874         command_unbind("window previous", (SIGNAL_FUNC) cmd_window_previous);   /* Dangerous Function Cast (ID: 2308.27332) */
 875         command_unbind("window next", (SIGNAL_FUNC) cmd_window_next);   /* Dangerous Function Cast (ID: 2306.27331) */
 876         command_unbind("window last", (SIGNAL_FUNC) cmd_window_last);   /* Dangerous Function Cast (ID: 2304.27330) */
 877         command_unbind("window level", (SIGNAL_FUNC) cmd_window_level);   /* Dangerous Function Cast (ID: 2302.27329) */
 878         command_unbind("window immortal", (SIGNAL_FUNC) cmd_window_immortal);   /* Dangerous Function Cast (ID: 2299.27328) */




Change Warning 2323.27338 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: