Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at perl-common.c:184

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2287.2295
Procedure: irssi_ref_object
Trace: View
Modified: Wed Sep 2 11:57:14 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/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 */
Preconditions
&$unknown_1167119 = 0
&$unknown_1167120 = 32
&$unknown_1167121 = 0
&$unknown_1167122 = 6
Postconditions
_svi' = $param_1
_svi' = $param_1
_svi' = $param_1
hv' = ((char*)$param_1)[16]
o' = $param_1
sv' = 0




Change Warning 2287.2295 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: