Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at textbuffer-view.c:351

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2349.2359
Procedure: view_line_draw
Trace: View
Modified: Wed Sep 2 12:19:33 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/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
((char*)$param_1)[104] = 0
Postconditions
cache' = 0
line' = $param_2
max' = $param_5
subline' = $param_3
view' = $param_1
ypos' = $param_4




Change Warning 2349.2359 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: