Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at textbuffer-view.c:682

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7413.28514
Procedure: view_draw_bottom
Trace: view
Modified: Thu Nov 26 11:19:49 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/textbuffer-view.c
   Enter view_draw_bottom
 674 static void view_draw_bottom(TEXT_BUFFER_VIEW_REC *view, int lines) 
 675 {
 676         LINE_REC *line;
 677         int ypos, maxline, subline, linecount;
 678  
 679         maxline = view->height-lines;
 680         line = view->startline; ypos = -view->subline; subline = 0;
 681         while (line != NULL && ypos < maxline) {
true682                 linecount = view_get_linecount(view, line);     /* Null Pointer Dereference */
 683                 ypos += linecount;
 684                 if (ypos > maxline) {
 685                         subline = maxline-(ypos-linecount);
 686                         break;
 687                 }
 688                 line = line->next;
Postconditions
((char*)&$unknown_1982488)[4]' = &$unknown_1982489
((char*)&$unknown_1982489)[8]' = 0
line' = &$unknown_1982489
maxline' >= -1 * view->subline + 1
subline' = 0




Change Warning 7413.28514 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: