Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at log.c:433

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7370.28467
Procedure: log_item_destroy
Trace: view
Modified: Thu Nov 26 11:12:35 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/Log.c
   Enter XS_Irssi__Log_item_destroy
 119 XS(XS_Irssi__Log_item_destroy) 
 120 {
 121 #ifdef dVAR 
 122     dVAR; dXSARGS;
 123 #else 
 124     dXSARGS; 
 125 #endif 
 126     if (items != 2)
 127        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Log::item_destroy", "log, item");
 128     PERL_UNUSED_VAR(cv); /* -W */ 
 129     {
 130         Irssi__Log      log = irssi_ref_object(ST(0));
true131         Irssi__Logitem  item = irssi_ref_object(ST(1));
 132  
item <= 4095133         log_item_destroy(log, item);
     /kat0/fletcher/SATE/2010/irssi-0.8.14/src/core/log.c
     Enter XS_Irssi__Log_item_destroy / log_item_destroy
 429   void log_item_destroy(LOG_REC *log, LOG_ITEM_REC *item) 
 430   {
 431           log->items = g_slist_remove(log->items, item);   /* Null Pointer Dereference (ID: 7371.28468) */
 432    
item <= 4095433           g_free(item->name);     /* Null Pointer Dereference */
     Exit XS_Irssi__Log_item_destroy / log_item_destroy
Postconditions
$unknown_945738' = $unknown_945738 - 4
item' = 0
item' = 0
items' != 2
log' = &$unknown_945754
log' = &$unknown_945754




Change Warning 7370.28467 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: