Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2380.2391
Procedure: view_get_linecount_all
Trace: View
Modified: Wed Sep 2 12:22:34 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_get_linecount_all
 630 static int view_get_linecount_all(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line) 
 631 {
 632         int linecount;
 633  
 634         linecount = 0;
 635         while (line != NULL) {
true636                 linecount += view_get_linecount(view, line);     /* Null Pointer Dereference */
 637                 line = line->next;
Preconditions
((char*)&$unknown_3333247)[16] = 0
Postconditions
((char*)&$unknown_3333246)[8]' = &$unknown_3333247
line' = &$unknown_3333247
view' = $param_1




Change Warning 2380.2391 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: