Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7410.28511
Procedure: view_line_draw
Trace: view
Modified: Thu Nov 26 11:19:48 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_line_draw
 337 static int view_line_draw(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
 338                           int subline, int ypos, int max) 
 339 {
 340         INDENT_FUNC indent_func;
 341         LINE_CACHE_REC *cache;
 342         const unsigned char *text, *end, *text_newline;
 343         unsigned char *tmp;
 344         unichar chr;
 345         int xpos, color, drawcount, first, need_move, need_clrtoeol, char_width;
 346  
 347         if (view->dirty) /* don't bother drawing anything - redraw is coming */ 
 348                 return 0;
 349  
true350         cache = textbuffer_view_get_line_cache(view, line);
cache <= 4095351         if (subline >= cache->count)     /* Null Pointer Dereference */
Preconditions
view->dirty = 0
Postconditions
cache' = 0




Change Warning 7410.28511 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: