Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at nicklist.c:82

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7364.28461
Procedure: nicklist_insert
Trace: view
Modified: Thu Nov 26 11:10:20 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/Channel.c
   Enter XS_Irssi__Channel_nick_insert
 203 XS(XS_Irssi__Channel_nick_insert) 
 204 {
 205 #ifdef dVAR 
 206     dVAR; dXSARGS;
 207 #else 
 208     dXSARGS; 
 209 #endif 
 210     if (items != 2)
 211        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Channel::nick_insert", "channel, nick");
 212     PERL_UNUSED_VAR(cv); /* -W */ 
 213     {
true214         Irssi__Channel  channel = irssi_ref_object(ST(0));
 215         Irssi__Nick     nick = irssi_ref_object(ST(1));
 216 #line 78 "Channel.xs"
channel <= 4095217         nicklist_insert(channel, nick);
     /kat0/fletcher/SATE/2010/irssi-0.8.14/src/core/nicklist.c
     Enter XS_Irssi__Channel_nick_insert / nicklist_insert
 77   void nicklist_insert(CHANNEL_REC *channel, NICK_REC *nick) 
 78   {
 79           /*MODULE_DATA_INIT(nick);*/ 
 80    
 81           nick->type = module_get_uniq_id("NICK", 0);   /* Null Pointer Dereference (ID: 7363.28460) */
channel <= 409582           nick->chat_type = channel->chat_type;     /* Null Pointer Dereference */  /* Null Pointer Dereference (ID: 7240.28322) */
     Exit XS_Irssi__Channel_nick_insert / nicklist_insert
Postconditions
$unknown_717977' = $unknown_717977 - 4
channel' = 0
channel' = 0
items' != 2
nick' = &$unknown_717992
nick' = &$unknown_717992




Change Warning 7364.28461 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: