Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1155.1155
Procedure: window_commands_init
Trace: View
Modified: Wed Sep 2 11:39:18 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
 843         command_bind("window number", NULL, (SIGNAL_FUNC) cmd_window_number);   /* Dangerous Function Cast (ID: 1165.1165) */
 844         command_bind("window name", NULL, (SIGNAL_FUNC) cmd_window_name);   /* Dangerous Function Cast (ID: 1164.1164) */
 845         command_bind("window history", NULL, (SIGNAL_FUNC) cmd_window_history);   /* Dangerous Function Cast (ID: 1163.1163) */
 846         command_bind("window move", NULL, (SIGNAL_FUNC) cmd_window_move);   /* Dangerous Function Cast (ID: 1162.1162) */
 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) */
Wrong Number of Parameters853         command_bind("layout", NULL, (SIGNAL_FUNC) cmd_layout);     /* Dangerous Function Cast */
 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 */ 
 857         command_bind("layout reset", NULL, (SIGNAL_FUNC) windows_layout_reset);   /* Dangerous Function Cast (ID: 1153.1153) */
 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 




Change Warning 1155.1155 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: