Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7408.28509
Procedure: textbuffer_view_set_default_indent
Trace: view
Modified: Thu Nov 26 11:19:43 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/perl/textui/TextBufferView.c
   Enter XS_Irssi__TextUI__TextBufferView_set_default_indent
 19 XS(XS_Irssi__TextUI__TextBufferView_set_default_indent) 
 20 {
 21 #ifdef dVAR 
 22     dVAR; dXSARGS;
 23 #else 
 24     dXSARGS; 
 25 #endif 
 26     if (items != 3)
 27        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::TextUI::TextBufferView::set_default_indent", "view, default_indent, longword_noindent");
 28     PERL_UNUSED_VAR(cv); /* -W */ 
 29     {
true30         Irssi__TextUI__TextBufferView   view = irssi_ref_object(ST(0));
 31         int     default_indent = (int)SvIV(ST(1));
 32         int     longword_noindent = (int)SvIV(ST(2));
 33 #line 16 "TextBufferView.xs"
view <= 409534         textbuffer_view_set_default_indent(view, default_indent, longword_noindent, NULL);
     /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-text/textbuffer-view.c
     Enter XS_Irssi__TextUI__TextBufferView_set_default_indent / textbuffer_view_set_default_indent
 589   void textbuffer_view_set_default_indent(TEXT_BUFFER_VIEW_REC *view,
 590                                           int default_indent,
 591                                           int longword_noindent,
 592                                           INDENT_FUNC indent_func) 
 593   {
 594           if (default_indent != -1)
view <= 4095595                   view->default_indent = default_indent;     /* Null Pointer Dereference */  /* Null Pointer Dereference (ID: 7453.28540) */
     Exit XS_Irssi__TextUI__TextBufferView_set_default_indent / textbuffer_view_set_default_indent
Postconditions
_svi' = &$unknown_1965980
_svi' = &$unknown_1965987
$unknown_1965964' = $unknown_1965964 - 4
default_indent' != -1
default_indent' = default_indent'
indent_func' = 0
items' = 3
view' = 0
view' = 0




Change Warning 7408.28509 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: