Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at Rawlog.c:80

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2311.2320
Procedure: XS_Irssi__Rawlog_get_lines
Trace: View
Modified: Wed Sep 2 12:04:16 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/common/Rawlog.c
   Enter XS_Irssi__Rawlog_get_lines
 62 XS(XS_Irssi__Rawlog_get_lines) 
 63 {
 64 #ifdef dVAR 
 65     dVAR; dXSARGS;
 66 #else 
 67     dXSARGS; 
 68 #endif 
 69     if (items != 1)
 70        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Rawlog::get_lines", "rawlog");
 71     PERL_UNUSED_VAR(cv); /* -W */ 
 72     PERL_UNUSED_VAR(ax); /* -Wall */ 
 73     SP -= items;
 74     {
true75         Irssi__Rawlog   rawlog = irssi_ref_object(ST(0));
 76 #line 21 "Rawlog.xs"
 77         GSList *tmp;
 78 #line 79 "Rawlog.c"
 79 #line 23 "Rawlog.xs"
rawlog <= 409580         for (tmp = rawlog->lines; tmp != NULL; tmp = tmp->next) {     /* Null Pointer Dereference */
Postconditions
$unknown_1702370' = $unknown_1702370 - 4
cv' = $param_2
items' != 1
my_perl' = $param_1
rawlog' = 0




Change Warning 2311.2320 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: