Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2330.2340
Procedure: XS_Irssi__UI__Theme_get_format
Trace: View
Modified: Wed Sep 2 12:13:53 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__UI__Theme_get_format
 443 XS(XS_Irssi__UI__Theme_get_format) 
 444 {
 445 #ifdef dVAR 
 446     dVAR; dXSARGS;
 447 #else 
 448     dXSARGS; 
 449 #endif 
 450     if (items != 3)
 451        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::UI::Theme::get_format", "theme, module, tag");
 452     PERL_UNUSED_VAR(cv); /* -W */ 
 453     {
 454         Irssi__UI__Theme        theme = irssi_ref_object(ST(0));
 455         char *  module = (char *)SvPV_nolen(ST(1));
 456         char *  tag = (char *)SvPV_nolen(ST(2));
 457 #line 251 "Themes.xs"
 458         MODULE_THEME_REC *modtheme;
 459         FORMAT_REC *formats;
 460         int i;
 461 #line 462 "Themes.c"
 462         char *  RETVAL;
 463         dXSTARG;
 464 #line 255 "Themes.xs"
 465         formats = g_hash_table_lookup(default_formats, module);
true466         if (formats == NULL)
 467                 croak("Unknown module: %s", module);
 468  
formats <= 4095469         for (i = 0; formats[i].def != NULL; i++) {     /* Null Pointer Dereference */
Postconditions
_svi' = &$unknown_2615122
_svi' = &$unknown_2615109
$unknown_2615085' = $unknown_2615085 - 4
cv' = $param_2
formats' = 0
i' = 0
items' != 3
module' = &$unknown_2615137
my_perl' = $param_1




Change Warning 2330.2340 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: