Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2365.2376
Procedure: view_update_cache
Trace: View
Modified: Wed Sep 2 12:21:12 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_update_cache
 311 static void view_update_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
 312                               unsigned char update_counter) 
 313 {
 314         view_remove_cache(view, line, update_counter);
 315  
 316         if (view->buffer->cur_line == line)
true317                 view->cache->last_linecount = view_get_linecount(view, line);     /* Null Pointer Dereference */
Preconditions
((char*)&((char*)*$param_1)[56])[16] != $param_3
((char*)*$param_1)[24] = $param_2
Postconditions
line' = $param_2
update_counter' = $param_3
view' = $param_1




Change Warning 2365.2376 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: