Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2095.27241
Procedure: keyboard_deinit
Trace: view
Modified: Thu Nov 26 11:01:56 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_deinit
 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  
 861 void keyboard_deinit(void) 
 862 {
Wrong Number of Parameters863         key_unbind("command", (SIGNAL_FUNC) sig_command);     /* Dangerous Function Cast */
 864         key_unbind("key", (SIGNAL_FUNC) sig_key);   /* Dangerous Function Cast (ID: 2093.27240) */
 865         key_unbind("multi", (SIGNAL_FUNC) sig_multi);   /* Dangerous Function Cast (ID: 2112.27248) */
 866         key_unbind("nothing", (SIGNAL_FUNC) sig_nothing);   /* Dangerous Function Cast (ID: 2109.27247) */
 867  
 868         while (keyinfos != NULL)
 869                 keyinfo_remove(keyinfos->data);
 870         g_hash_table_destroy(keys);
 871         g_hash_table_destroy(default_keys);
 872  
 873         g_tree_traverse(key_states, (GTraverseFunc) key_state_destroy,   /* Dangerous Function Cast (ID: 2107.27246) */




Change Warning 2095.27241 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: