Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at statusbar.c:1151

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1983.1983
Procedure: statusbar_deinit
Trace: View
Modified: Wed Sep 2 11:48:01 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-text/statusbar.c
   Enter statusbar_deinit
 1141         g_hash_table_destroy(sbar_item_funcs);
 1142  
 1143         g_hash_table_foreach(sbar_signal_items,
 1144                              (GHFunc) statusbar_signal_item_destroy, NULL);   /* Dangerous Function Cast (ID: 1975.1975) */
 1145         g_hash_table_destroy(sbar_signal_items);
 1146         g_hash_table_foreach(sbar_item_signals,
 1147                              (GHFunc) statusbar_item_signal_destroy, NULL);   /* Dangerous Function Cast (ID: 1974.1974) */
 1148         g_hash_table_destroy(sbar_item_signals);
 1149         g_hash_table_destroy(named_sbar_items);
 1150  
Wrong Number of Parameters1151         signal_remove("terminal resized", (SIGNAL_FUNC) sig_terminal_resized);     /* Dangerous Function Cast */
 1152         signal_remove("mainwindow resized", (SIGNAL_FUNC) sig_mainwindow_resized);   /* Dangerous Function Cast (ID: 1982.1982) */
 1153         signal_remove("mainwindow moved", (SIGNAL_FUNC) sig_mainwindow_resized);   /* Dangerous Function Cast (ID: 1981.1981) */
 1154         signal_remove("gui window created", (SIGNAL_FUNC) sig_gui_window_created);   /* Dangerous Function Cast (ID: 1980.1980) */
 1155         signal_remove("window changed", (SIGNAL_FUNC) sig_window_changed);   /* Dangerous Function Cast (ID: 1979.1979) */
 1156         signal_remove("mainwindow destroyed", (SIGNAL_FUNC) sig_mainwindow_destroyed);   /* Dangerous Function Cast (ID: 1978.1978) */
 1157  
 1158         statusbar_items_deinit();
 1159         statusbar_config_deinit();
 1160 




Change Warning 1983.1983 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: