Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at statusbar.c:1137

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4461.28128
Procedure: statusbar_deinit
Trace: view
Modified: Thu Nov 26 11:06:44 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-text/statusbar.c
   Enter statusbar_deinit
 1127         statusbar_items_init();
 1128         statusbar_config_init(); /* signals need to be before this call */ 
 1129 }
 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,
Wrong Number of Parameters1137                              (GHFunc) statusbar_item_def_destroy, NULL);     /* Dangerous Function Cast */
 1138         g_hash_table_destroy(sbar_item_defs);
 1139  
 1140         g_hash_table_foreach(sbar_item_funcs, (GHFunc) g_free, NULL);   /* Dangerous Function Cast (ID: 4460.28127) */
 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: 4458.28126) */
 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: 4456.28125) */




Change Warning 4461.28128 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: