Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1976.1976
Procedure: statusbar_deinit
Trace: View
Modified: Wed Sep 2 11:47:57 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
 1130  
 1131 void statusbar_deinit(void) 
 1132 {
 1133         while (statusbar_groups != NULL)
 1134                 statusbar_group_destroy(statusbar_groups->data);
 1135  
 1136         g_hash_table_foreach(sbar_item_defs,
 1137                              (GHFunc) statusbar_item_def_destroy, NULL);   /* Dangerous Function Cast (ID: 1977.1977) */
 1138         g_hash_table_destroy(sbar_item_defs);
 1139  
Wrong Number of Parameters1140         g_hash_table_foreach(sbar_item_funcs, (GHFunc) g_free, NULL);     /* Dangerous Function Cast */
 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  




Change Warning 1976.1976 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: