Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1973.1973
Procedure: statusbars_create_window_bars
Trace: View
Modified: Wed Sep 2 11:47: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
   /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/fe-text/statusbar.c
   Enter statusbars_create_window_bars
 1091         }
 1092 }
 1093  
 1094 static void statusbar_item_signal_destroy(void *key, GSList *value)
 1095 {
 1096         g_slist_free(value);
 1097 }
 1098  
 1099 void statusbars_create_window_bars(void) 
 1100 {
Wrong Number of Parameters1101         g_slist_foreach(mainwindows, (GFunc) statusbars_add_visible, NULL);     /* Dangerous Function Cast */
 1102 
 1103  
 1104 void statusbar_init(void)
 1105 {
 1106         statusbar_need_recreate_items = FALSE;
 1107         statusbar_groups = NULL;
 1108         active_statusbar_group = NULL;
 1109         sbar_item_defs = g_hash_table_new((GHashFunc) g_str_hash,
 1110                                           (GCompareFunc) g_str_equal);
 1111         sbar_item_funcs = g_hash_table_new((GHashFunc) g_str_hash,




Change Warning 1973.1973 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: