Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at mainwindows.c:866

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7441.28548
Procedure: window_refnum_left
Trace: view
Modified: Thu Nov 26 11:21:00 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/mainwindows.c
   Enter window_refnum_left
 849 static int window_refnum_left(int refnum, int wrap) 
 850 {
 851         MAIN_WINDOW_REC *find_sticky;
 852         WINDOW_REC *window;
 853  
 854         window = window_find_refnum(refnum);
 855         g_return_val_if_fail(window != NULL, -1);
 856  
 857         find_sticky = WINDOW_MAIN(window)->sticky_windows ? 
 858                 WINDOW_MAIN(window) : NULL;
 859  
 860         do {
 861                 refnum = window_refnum_prev(refnum, wrap);
 862                 if (refnum < 0)
 863                         break;
 864  
true865                 window = window_find_refnum(refnum);
window <= 4095866         } while (!WINDOW_STICKY_MATCH(window, find_sticky));     /* Null Pointer Dereference */
Preconditions
((char*)((char*)$unknown_2171685)[80])[8] = 0
windows->next = 0
*windows->data != refnum
Postconditions
_g_boolean_var_' = 1
find_sticky' = 0
refnum' >= 0
refnum' != *windows->data
window' = 0




Change Warning 7441.28548 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: