Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2384.2395
Procedure: window_refnum_left
Trace: View
Modified: Wed Sep 2 12:22:55 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 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_3354054)[152])[16] = 0
windows->next = 0
*windows->data != $param_1
Postconditions
_g_boolean_var_' = 1
find_sticky' = 0
refnum' >= 0
refnum' != *windows->data
window' = 0
wrap' = $param_2




Change Warning 2384.2395 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: