Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1951.1951
Procedure: statusbar_items_redraw
Trace: View
Modified: Wed Sep 2 11:47:47 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_items_redraw
 357                    the statusbar to see if this is allowed */ 
 358                 statusbar_redraw(item->bar, FALSE);
 359         }
 360  
 361         active_win = old_active_win;
 362 }
 363  
 364 void statusbar_items_redraw(const char *name) 
 365 {
 366         g_slist_foreach(g_hash_table_lookup(named_sbar_items, name),
Wrong Number of Parameters367                         (GFunc) statusbar_item_redraw, NULL);     /* Dangerous Function Cast */
 368 
 369  
 370 static void statusbars_recalc_ypos(STATUSBAR_REC *bar)
 371 {
 372         GSList *tmp, *bar_group;
 373         int ypos;
 374  
 375         /* get list of statusbars with same type and placement,
 376            sorted by position */ 
 377         bar_group = NULL;




Change Warning 1951.1951 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: