Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at Themes.c:387

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2326.2336
Procedure: XS_Irssi__Windowitem_printformat
Trace: View
Modified: Wed Sep 2 12:13:23 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/ui/Themes.c
   Enter XS_Irssi__Windowitem_printformat
 367 XS(XS_Irssi__Windowitem_printformat) 
 368 {
 369 #ifdef dVAR 
 370     dVAR; dXSARGS;
 371 #else 
 372     dXSARGS; 
 373 #endif 
 374     if (items < 3)
 375        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Windowitem::printformat", "item, level, format, ...");
 376     PERL_UNUSED_VAR(cv); /* -W */ 
 377     {
true378         Irssi__Windowitem       item = irssi_ref_object(ST(0));
 379         int     level = (int)SvIV(ST(1));
 380         char *  format = (char *)SvPV_nolen(ST(2));
 381 #line 212 "Themes.xs"
 382         TEXT_DEST_REC dest;
 383         char *arglist[MAX_FORMAT_PARAMS+1];
 384         int n;
 385 #line 386 "Themes.c"
 386 #line 216 "Themes.xs"
item <= 4095387         format_create_dest(&dest, item->server, item->visible_name, level, NULL);     /* Null Pointer Dereference */
Preconditions
&$unknown_2514364 >= 3
Postconditions
_svi' = &$unknown_2514392
_svi' = &$unknown_2514378
$unknown_2514358' = $unknown_2514358 - 4
cv' = $param_2
item' = 0
items' = &$unknown_2514364
my_perl' = $param_1




Change Warning 2326.2336 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: