Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2385.2396
Procedure: window_refnum_right
Trace: View
Modified: Wed Sep 2 12:22:56 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_right
 871 static int window_refnum_right(int refnum, int wrap) 
 872 {
 873         MAIN_WINDOW_REC *find_sticky;
 874         WINDOW_REC *window;
 875  
 876         window = window_find_refnum(refnum);
 877         g_return_val_if_fail(window != NULL, -1);
 878  
 879         find_sticky = WINDOW_MAIN(window)->sticky_windows ? 
 880                 WINDOW_MAIN(window) : NULL;
 881  
 882         do {
 883                 refnum = window_refnum_next(refnum, wrap);
 884                 if (refnum < 0)
 885                         break;
 886  
true887                 window = window_find_refnum(refnum);
window <= 4095888         } while (!WINDOW_STICKY_MATCH(window, find_sticky));     /* Null Pointer Dereference */
Preconditions
((char*)((char*)$unknown_3354292)[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 2385.2396 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: