Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at Server.c:311

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2323.2333
Procedure: XS_Irssi__Irc__Server_isupport
Trace: View
Modified: Wed Sep 2 12:11:32 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/Server.c
   Enter XS_Irssi__Irc__Server_isupport
 295 XS(XS_Irssi__Irc__Server_isupport) 
 296 {
 297 #ifdef dVAR 
 298     dVAR; dXSARGS;
 299 #else 
 300     dXSARGS; 
 301 #endif 
 302     if (items != 2)
 303        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Irc::Server::isupport", "server, name");
 304     PERL_UNUSED_VAR(cv); /* -W */ 
 305     {
true306         Irssi__Irc__Server      server = irssi_ref_object(ST(0));
 307         char *  name = (char *)SvPV_nolen(ST(1));
 308         char *  RETVAL;
 309         dXSTARG;
 310 #line 147 "Server.xs"
server <= 4095311         RETVAL = (char *) g_hash_table_lookup(server->isupport, name);     /* Null Pointer Dereference */
Postconditions
_svi' = &$unknown_2357043
$unknown_2357021' = $unknown_2357021 - 4
cv' = $param_2
items' != 2
my_perl' = $param_1
server' = 0




Change Warning 2323.2333 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: