Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at perl-common.c:184

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7350.28445
Procedure: irssi_ref_object
Trace: view
Modified: Thu Nov 26 11:09:50 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/perl-common.c
   Enter irssi_ref_object
 171 void *irssi_ref_object(SV *o) 
 172 {
 173         SV **sv;
 174         HV *hv;
 175         void *p;
 176  
 177         hv = hvref(o);
 178         if (hv == NULL)
 179                 return NULL;
 180  
 181         sv = hv_fetch(hv, "_irssi", 6, 0);
true182         if (sv == NULL)
 183                 croak("variable is damaged");
sv <= 4095184         p = GINT_TO_POINTER(SvIV(*sv));     /* Null Pointer Dereference */
Postconditions
_svi' = o
_svi' = o
_svi' = o
hv' = o->sv_u
sv' = 0




Change Warning 7350.28445 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: