Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at Core.c:2021

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2304.2313
Procedure: XS_Irssi__Windowitem_command
Trace: View
Modified: Wed Sep 2 12:00:41 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/Core.c
   Enter XS_Irssi__Windowitem_command
 2007 XS(XS_Irssi__Windowitem_command) 
 2008 {
 2009 #ifdef dVAR 
 2010     dVAR; dXSARGS;
 2011 #else 
 2012     dXSARGS; 
 2013 #endif 
 2014     if (items != 2)
 2015        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Windowitem::command", "item, cmd");
 2016     PERL_UNUSED_VAR(cv); /* -W */ 
 2017     {
true2018         Irssi__Windowitem       item = irssi_ref_object(ST(0));
 2019         char *  cmd = (char *)SvPV_nolen(ST(1));
 2020 #line 736 "Core.xs"
item <= 40952021         perl_command(cmd, item->server, item);     /* Null Pointer Dereference */
Postconditions
_svi' = &$unknown_1440883
$unknown_1440861' = $unknown_1440861 - 4
cmd' = ((char*)&$unknown_1440883)[16]
cv' = $param_2
item' = 0
items' != 2
my_perl' = $param_1




Change Warning 2304.2313 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: