Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at keyboard.c:850

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2076.27233
Procedure: keyboard_init
Trace: view
Modified: Thu Nov 26 11:01:54 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/keyboard.c
   Enter keyboard_init
 840         default_keys = g_hash_table_new((GHashFunc) g_str_hash,
 841                                         (GCompareFunc) g_str_equal);
 842         keyinfos = NULL;
 843         key_states = g_tree_new((GCompareFunc) strcmp);
 844         key_config_frozen = 0;
 845         memset(used_keys, 0, sizeof(used_keys));
 846  
 847         key_bind("command", "Run any command", NULL, NULL, (SIGNAL_FUNC) sig_command);   /* Dangerous Function Cast (ID: 2082.27236) */
 848         key_bind("key", "Specify name for key binding", NULL, NULL, (SIGNAL_FUNC) sig_key);   /* Dangerous Function Cast (ID: 2080.27235) */
 849         key_bind("multi", "Run multiple commands", NULL, NULL, (SIGNAL_FUNC) sig_multi);   /* Dangerous Function Cast (ID: 2078.27234) */
Wrong Number of Parameters850         key_bind("nothing", "Do nothing", NULL, NULL, (SIGNAL_FUNC) sig_nothing);     /* Dangerous Function Cast */
 851  
 852         /* read the keyboard config when all key binds are known */ 
 853         signal_add("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config);   /* Dangerous Function Cast (ID: 2074.27232) */
 854         signal_add("setup reread", (SIGNAL_FUNC) read_keyboard_config);   /* Dangerous Function Cast (ID: 2072.27231) */
 855         signal_add("complete command bind", (SIGNAL_FUNC) sig_complete_bind);   /* Dangerous Function Cast (ID: 2069.27230) */
 856  
 857         command_bind("bind", NULL, (SIGNAL_FUNC) cmd_bind);   /* Dangerous Function Cast (ID: 2085.27237) */
 858         command_set_options("bind", "delete list");
 859 } 
 860  




Change Warning 2076.27233 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: