Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7371.28468
Procedure: log_item_destroy
Trace: view
Modified: Thu Nov 26 11:12:36 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     {
true130         Irssi__Log      log = irssi_ref_object(ST(0));
 131         Irssi__Logitem  item = irssi_ref_object(ST(1));
 132  
log <= 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   {
log <= 4095431           log->items = g_slist_remove(log->items, item);     /* Null Pointer Dereference */
     Exit XS_Irssi__Log_item_destroy / log_item_destroy
Postconditions
$unknown_948445' = $unknown_948445 - 4
item' = item'
items' != 2
log' = 0
log' = 0




Change Warning 7371.28468 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: