Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7418.28520
Procedure: view_get_lines_height
Trace: view
Modified: Thu Nov 26 11:19:53 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_get_lines_height
 1030 static int view_get_lines_height(TEXT_BUFFER_VIEW_REC *view,
 1031                                  LINE_REC *line, int subline,
 1032                                  LINE_REC *skip_line) 
 1033 {
 1034         int height, linecount;
 1035  
 1036         height = -subline;
 1037         while (line != NULL && height < view->height) {
 1038                 if (line != skip_line) {
true1039                         linecount = view_get_linecount(view, line);     /* Null Pointer Dereference */
 1040                         height += linecount;
 1041                 }
 1042                 line = line->next;
Preconditions
&$unknown_1997313 != skip_line
view->height >= -1 * subline + 1
Postconditions
((char*)&$unknown_1997313)[8]' = 0
line' = &$unknown_1997313




Change Warning 7418.28520 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: