Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4243.28105
Procedure: statusbar_create
Trace: view
Modified: Thu Nov 26 11:06:37 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_create
 495                 parent_window->statusbars = 
 496                         g_slist_append(parent_window->statusbars, bar);
 497                 mainwindow_set_statusbar_lines(parent_window,
 498                                                config->placement == STATUSBAR_TOP,
 499                                                config->placement == STATUSBAR_BOTTOM);
 500                 theme = parent_window != NULL && parent_window->active != NULL &&   /* Null Test After Dereference (ID: 7444.28551) */
 501                         parent_window->active->theme != NULL ? 
 502                         parent_window->active->theme : current_theme;
 503         }
 504  
Wrong Number of Parameters505         signal_add("terminal resized", (SIGNAL_FUNC) sig_terminal_resized);     /* Dangerous Function Cast */
 506         signal_add("mainwindow resized", (SIGNAL_FUNC) sig_mainwindow_resized);   /* Dangerous Function Cast (ID: 4241.28104) */
 507         signal_add("mainwindow moved", (SIGNAL_FUNC) sig_mainwindow_resized);   /* Dangerous Function Cast (ID: 4239.28103) */
 508  
 509         /* get background color from sb_background abstract */ 
 510         name = g_strdup_printf("{sb_%s_bg}", config->name);
 511         value = theme_format_expand(theme, name);
 512         g_free(name);
 513  
 514         if (*value == '\0') {   /* Null Pointer Dereference (ID: 7445.28553) */
 515                 /* try with the statusbar group name */ 




Change Warning 4243.28105 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: