Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2346.2356
Procedure: XS_Irssi__TextUI__Line_next
Trace: View
Modified: Wed Sep 2 12:18:58 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_next
 44 XS(XS_Irssi__TextUI__Line_next) 
 45 {
 46 #ifdef dVAR 
 47     dVAR; dXSARGS;
 48 #else 
 49     dXSARGS; 
 50 #endif 
 51     if (items != 1)
 52        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::TextUI::Line::next", "line");
 53     PERL_UNUSED_VAR(cv); /* -W */ 
 54     {
true55         Irssi__TextUI__Line     line = irssi_ref_object(ST(0));
 56         Irssi__TextUI__Line     RETVAL;
 57 #line 22 "TextBuffer.xs"
line <= 409558         RETVAL = line->next;     /* Null Pointer Dereference */
Postconditions
$unknown_3045530' = $unknown_3045530 - 4
cv' = $param_2
items' != 1
line' = 0
my_perl' = $param_1




Change Warning 2346.2356 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: