Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at ignore.c:334

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2307.2316
Procedure: ignore_update_rec
Trace: View
Modified: Wed Sep 2 12:02:17 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/Ignore.c
   Enter XS_Irssi__Ignore_update_rec
 123 XS(XS_Irssi__Ignore_update_rec) 
 124 {
 125 #ifdef dVAR 
 126     dVAR; dXSARGS;
 127 #else 
 128     dXSARGS; 
 129 #endif 
 130     if (items != 1)
 131        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Ignore::update_rec", "rec");
 132     PERL_UNUSED_VAR(cv); /* -W */ 
 133     {
true134         Irssi__Ignore   rec = irssi_ref_object(ST(0));
 135  
rec <= 4095136         ignore_update_rec(rec);
     /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/core/ignore.c
     Enter XS_Irssi__Ignore_update_rec / ignore_update_rec
$param_1 <= 4095332   void ignore_update_rec(IGNORE_REC *rec) 
 333   {
rec <= 4095334           if (rec->level == 0) {     /* Null Pointer Dereference */
     Exit XS_Irssi__Ignore_update_rec / ignore_update_rec
Postconditions
$unknown_1536659' = $unknown_1536659 - 4
cv' = $param_2
items' != 1
my_perl' = $param_1
rec' = 0
rec' = 0




Change Warning 2307.2316 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: