Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at TextBuffer.c:33

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2345.2355
Procedure: XS_Irssi__TextUI__Line_prev
Trace: View
Modified: Wed Sep 2 12:18:53 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/TextBuffer.c
   Enter XS_Irssi__TextUI__Line_prev
 19 XS(XS_Irssi__TextUI__Line_prev) 
 20 {
 21 #ifdef dVAR 
 22     dVAR; dXSARGS;
 23 #else 
 24     dXSARGS; 
 25 #endif 
 26     if (items != 1)
 27        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::TextUI::Line::prev", "line");
 28     PERL_UNUSED_VAR(cv); /* -W */ 
 29     {
true30         Irssi__TextUI__Line     line = irssi_ref_object(ST(0));
 31         Irssi__TextUI__Line     RETVAL;
 32 #line 14 "TextBuffer.xs"
line <= 409533         RETVAL = line->prev;     /* Null Pointer Dereference */
Postconditions
$unknown_3043269' = $unknown_3043269 - 4
cv' = $param_2
items' != 1
line' = 0
my_perl' = $param_1




Change Warning 2345.2355 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: