Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2309.2318
Procedure: log_item_destroy
Trace: View
Modified: Wed Sep 2 12:02:49 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     {
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);
     /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/core/log.c
     Enter XS_Irssi__Log_item_destroy / log_item_destroy
$param_1 <= 4095429   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_1573697' = $unknown_1573697 - 4
cv' = $param_2
item' = item'
items' != 2
log' = 0
log' = 0
my_perl' = $param_1




Change Warning 2309.2318 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: