Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2300.2309
Procedure: XS_Irssi__Server_channels
Trace: View
Modified: Wed Sep 2 11:58: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/common/Channel.c
   Enter XS_Irssi__Server_channels
 72 XS(XS_Irssi__Server_channels) 
 73 {
 74 #ifdef dVAR 
 75     dVAR; dXSARGS;
 76 #else 
 77     dXSARGS; 
 78 #endif 
 79     if (items != 1)
 80        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Server::channels", "server");
 81     PERL_UNUSED_VAR(cv); /* -W */ 
 82     PERL_UNUSED_VAR(ax); /* -Wall */ 
 83     SP -= items;
 84     {
true85         Irssi__Server   server = irssi_ref_object(ST(0));
 86 #line 31 "Channel.xs"
 87         GSList *tmp;
 88 #line 89 "Channel.c"
 89 #line 33 "Channel.xs"
server <= 409590         for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {     /* Null Pointer Dereference */
Postconditions
$unknown_1236354' = $unknown_1236354 - 4
cv' = $param_2
items' != 1
my_perl' = $param_1
server' = 0




Change Warning 2300.2309 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: