Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at Channel.c:154

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2314.2323
Procedure: XS_Irssi__Irc__Channel_bans
Trace: View
Modified: Wed Sep 2 12:07:35 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/irc/Channel.c
   Enter XS_Irssi__Irc__Channel_bans
 136 XS(XS_Irssi__Irc__Channel_bans) 
 137 {
 138 #ifdef dVAR 
 139     dVAR; dXSARGS;
 140 #else 
 141     dXSARGS; 
 142 #endif 
 143     if (items != 1)
 144        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Irc::Channel::bans", "channel");
 145     PERL_UNUSED_VAR(cv); /* -W */ 
 146     PERL_UNUSED_VAR(ax); /* -Wall */ 
 147     SP -= items;
 148     {
true149         Irssi__Irc__Channel     channel = irssi_ref_object(ST(0));
 150 #line 46 "Channel.xs"
 151         GSList *tmp;
 152 #line 153 "Channel.c"
 153 #line 48 "Channel.xs"
channel <= 4095154         for (tmp = channel->banlist; tmp != NULL; tmp = tmp->next) {     /* Null Pointer Dereference */
Postconditions
$unknown_1889023' = $unknown_1889023 - 4
channel' = 0
cv' = $param_2
items' != 1
my_perl' = $param_1




Change Warning 2314.2323 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: