Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2347.2357
Procedure: textbuffer_view_set_default_indent
Trace: View
Modified: Wed Sep 2 12:19:15 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/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);
     /u1/paul/SATE/2010/c/irssi/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,
$param_1 <= 4095592                                           INDENT_FUNC indent_func) 
 593   {
 594           if (default_indent != -1)
view <= 4095595                   view->default_indent = default_indent;     /* Null Pointer Dereference */  /* Null Pointer Dereference (ID: 2376.2387) */
     Exit XS_Irssi__TextUI__TextBufferView_set_default_indent / textbuffer_view_set_default_indent
Postconditions
_svi' = &$unknown_3071263
_svi' = &$unknown_3071249
$unknown_3071229' = $unknown_3071229 - 4
cv' = $param_2
default_indent' != -1
default_indent' = default_indent'
indent_func' = 0
items' = 3
my_perl' = $param_1
view' = 0
view' = 0




Change Warning 2347.2357 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: