Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2256.27305
Procedure: window_commands_init
Trace: view
Modified: Thu Nov 26 11:02:14 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_init
 847         command_bind("window move prev", NULL, (SIGNAL_FUNC) cmd_window_move_prev);   /* Dangerous Function Cast (ID: 2270.27313) */
 848         command_bind("window move next", NULL, (SIGNAL_FUNC) cmd_window_move_next);   /* Dangerous Function Cast (ID: 2269.27312) */
 849         command_bind("window move first", NULL, (SIGNAL_FUNC) cmd_window_move_first);   /* Dangerous Function Cast (ID: 2268.27311) */
 850         command_bind("window move last", NULL, (SIGNAL_FUNC) cmd_window_move_last);   /* Dangerous Function Cast (ID: 2267.27310) */
 851         command_bind("window list", NULL, (SIGNAL_FUNC) cmd_window_list);   /* Dangerous Function Cast (ID: 2265.27309) */
 852         command_bind("window theme", NULL, (SIGNAL_FUNC) cmd_window_theme);   /* Dangerous Function Cast (ID: 2263.27308) */
 853         command_bind("layout", NULL, (SIGNAL_FUNC) cmd_layout);   /* Dangerous Function Cast (ID: 2261.27307) */
 854         /* SYNTAX: LAYOUT SAVE */ 
 855         command_bind("layout save", NULL, (SIGNAL_FUNC) windows_layout_save);   /* Dangerous Function Cast (ID: 2258.27306) */
 856         /* SYNTAX: LAYOUT RESET */ 
Wrong Number of Parameters857         command_bind("layout reset", NULL, (SIGNAL_FUNC) windows_layout_reset);     /* Dangerous Function Cast */
 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) */




Change Warning 2256.27305 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: