Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2303.2312
Procedure: XS_Irssi__Windowitem_parse_special
Trace: View
Modified: Wed Sep 2 12:00:38 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_parse_special
 1963 XS(XS_Irssi__Windowitem_parse_special) 
 1964 {
 1965 #ifdef dVAR 
 1966     dVAR; dXSARGS;
 1967 #else 
 1968     dXSARGS; 
 1969 #endif 
 1970     if (items < 2 || items > 4)
 1971        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Windowitem::parse_special", "item, cmd, data=\"\", flags=0");
 1972     PERL_UNUSED_VAR(cv); /* -W */ 
 1973     PERL_UNUSED_VAR(ax); /* -Wall */ 
 1974     SP -= items;
 1975     {
true1976         Irssi__Windowitem       item = irssi_ref_object(ST(0));
 1977         char *  cmd = (char *)SvPV_nolen(ST(1));
 1978         char *  data;
 1979         int     flags;
 1980 #line 725 "Core.xs"
 1981         char *ret;
 1982 #line 1983 "Core.c"
 1983  
 1984         if (items < 3)
 1985             data = "";
 1986         else {
 1987             data = (char *)SvPV_nolen(ST(2));
 1988         }
 1989  
 1990         if (items < 4)
 1991             flags = 0;
 1992         else {
 1993             flags = (int)SvIV(ST(3));
 1994         }
 1995 #line 727 "Core.xs"
item <= 40951996         ret = parse_special_string(cmd, item->server, item, data, NULL, flags);     /* Null Pointer Dereference */
Preconditions
&$unknown_1428620 >= 5
Postconditions
_svi' = &$unknown_1428660
_svi' = &$unknown_1428637
_svi' = &$unknown_1428649
$unknown_1428614' = $unknown_1428614 - 4
cv' = $param_2
flags' = ((char*)$unknown_1428660)[24]
item' = 0
items' = &$unknown_1428620
my_perl' = $param_1




Change Warning 2303.2312 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: