Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at mainwindows.c:139

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2381.2392
Procedure: mainwindow_change_active
Trace: View
Modified: Wed Sep 2 12:22:34 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/mainwindows.c
   Enter mainwindow_change_active
 129 void mainwindow_change_active(MAIN_WINDOW_REC *mainwin,
 130                               WINDOW_REC *skip_window) 
 131 {
 132         WINDOW_REC *window, *other;
 133         GSList *tmp;
 134  
 135         mainwin->active = NULL;
 136         if (mainwin->sticky_windows) {
 137                 /* sticky window */ 
true138                 tmp = get_sticky_windows_sorted(mainwin);
tmp <= 4095139                 window = tmp->data;     /* Null Pointer Dereference */
Preconditions
((char*)$param_1)[16] != 0
windows = 0
Postconditions
mainwin' = $param_1
skip_window' = $param_2
tmp' = 0




Change Warning 2381.2392 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: