Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at Query.c:92

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7372.28469
Procedure: XS_Irssi__Server_queries
Trace: view
Modified: Thu Nov 26 11:13:09 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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/perl/common/Query.c
   Enter XS_Irssi__Server_queries
 74 XS(XS_Irssi__Server_queries) 
 75 {
 76 #ifdef dVAR 
 77     dVAR; dXSARGS;
 78 #else 
 79     dXSARGS; 
 80 #endif 
 81     if (items != 1)
 82        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Server::queries", "server");
 83     PERL_UNUSED_VAR(cv); /* -W */ 
 84     PERL_UNUSED_VAR(ax); /* -Wall */ 
 85     SP -= items;
 86     {
true87         Irssi__Server   server = irssi_ref_object(ST(0));
 88 #line 33 "Query.xs"
 89         GSList *tmp;
 90 #line 91 "Query.c"
 91 #line 35 "Query.xs"
server <= 409592         for (tmp = server->queries; tmp != NULL; tmp = tmp->next) {     /* Null Pointer Dereference */
Postconditions
$unknown_1024794' = $unknown_1024794 - 4
items' != 1
server' = 0




Change Warning 7372.28469 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: