Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at window-commands.c:857

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1153.1153
Procedure: window_commands_init
Trace: View
Modified: Wed Sep 2 11:39: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/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: 1161.1161) */
 848         command_bind("window move next", NULL, (SIGNAL_FUNC) cmd_window_move_next);   /* Dangerous Function Cast (ID: 1160.1160) */
 849         command_bind("window move first", NULL, (SIGNAL_FUNC) cmd_window_move_first);   /* Dangerous Function Cast (ID: 1159.1159) */
 850         command_bind("window move last", NULL, (SIGNAL_FUNC) cmd_window_move_last);   /* Dangerous Function Cast (ID: 1158.1158) */
 851         command_bind("window list", NULL, (SIGNAL_FUNC) cmd_window_list);   /* Dangerous Function Cast (ID: 1157.1157) */
 852         command_bind("window theme", NULL, (SIGNAL_FUNC) cmd_window_theme);   /* Dangerous Function Cast (ID: 1156.1156) */
 853         command_bind("layout", NULL, (SIGNAL_FUNC) cmd_layout);   /* Dangerous Function Cast (ID: 1155.1155) */
 854         /* SYNTAX: LAYOUT SAVE */ 
 855         command_bind("layout save", NULL, (SIGNAL_FUNC) windows_layout_save);   /* Dangerous Function Cast (ID: 1154.1154) */
 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: 1152.1152) */
 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: 1187.1187) */




Change Warning 1153.1153 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: