Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7382.28480
Procedure: notifylist_ircnets_match
Trace: view
Modified: Thu Nov 26 11:15:52 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/irc/Notifylist.c
   Enter XS_Irssi__Irc__Notifylist_ircnets_match
 171 XS(XS_Irssi__Irc__Notifylist_ircnets_match) 
 172 {
 173 #ifdef dVAR 
 174     dVAR; dXSARGS;
 175 #else 
 176     dXSARGS; 
 177 #endif 
 178     if (items != 2)
 179        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Irc::Notifylist::ircnets_match", "rec, ircnet");
 180     PERL_UNUSED_VAR(cv); /* -W */ 
 181     {
true182         Irssi__Irc__Notifylist  rec = irssi_ref_object(ST(0));
 183         char *  ircnet = (char *)SvPV_nolen(ST(1));
 184         int     RETVAL;
 185         dXSTARG;
 186  
rec <= 4095187         RETVAL = notifylist_ircnets_match(rec, ircnet);
     /kat0/fletcher/SATE/2010/irssi-0.8.14/src/irc/notifylist/notifylist.c
     Enter XS_Irssi__Irc__Notifylist_ircnets_match / notifylist_ircnets_match
 88   int notifylist_ircnets_match(NOTIFYLIST_REC *rec, const char *ircnet) 
 89   {
 90           char **tmp;
 91    
rec <= 409592           if (rec->ircnets == NULL) return TRUE;     /* Null Pointer Dereference */
     Exit XS_Irssi__Irc__Notifylist_ircnets_match / notifylist_ircnets_match
Postconditions
_svi' = &$unknown_1360822
$unknown_1360805' = $unknown_1360805 - 4
ircnet' = ircnet'
items' != 2
rec' = 0
rec' = 0




Change Warning 7382.28480 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: