Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at log.c:433

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2308.2317
Procedure: log_item_destroy
Trace: View
Modified: Wed Sep 2 12:02:48 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/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);
     /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/core/log.c
     Enter XS_Irssi__Log_item_destroy / log_item_destroy
$param_2 <= 4095429   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: 2309.2318) */
 432    
item <= 4095433           g_free(item->name);     /* Null Pointer Dereference */
     Exit XS_Irssi__Log_item_destroy / log_item_destroy
Preconditions
&$unknown_1570277 = 0
Postconditions
$unknown_1570256' = $unknown_1570256 - 4
cv' = $param_2
item' = 0
item' = 0
items' != 2
log' = &$unknown_1570276
log' = &$unknown_1570276
my_perl' = $param_1




Change Warning 2308.2317 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: