Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at gui-windows.c:83

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7455.28542
Procedure: gui_window_created
Trace: view
Modified: Thu Nov 26 11:20:54 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/gui-windows.c
   Enter gui_window_created
 68 static void gui_window_created(WINDOW_REC *window, void *automatic) 
 69 {
 70         MAIN_WINDOW_REC *parent;
 71         int new_parent;
 72  
 73         g_return_if_fail(window != NULL);
 74  
 75         new_parent = window_create_override == 0 || 
 76                 window_create_override == 2 || 
true77                 active_win == NULL || WINDOW_GUI(active_win) == NULL;
 78         parent = !new_parent ? WINDOW_MAIN(active_win) : mainwindow_create();
 79         if (parent == NULL) {
 80                 /* not enough space for new window, but we really can't 
 81                    abort creation of the window anymore, so create hidden 
 82                    window instead. */ 
active_win->gui_data <= 409583                 parent = WINDOW_MAIN(active_win);     /* Null Pointer Dereference */
Preconditions
window != 0
active_win->gui_data = 0
window_create_override != 0
window_create_override != 2
Postconditions
_g_boolean_var_' = 1
new_parent' = 1
parent' = 0




Change Warning 7455.28542 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: