Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at Themes.c:469

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7392.28491
Procedure: XS_Irssi__UI__Theme_get_format
Trace: view
Modified: Thu Nov 26 11:17:35 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
   /kat0/fletcher/SATE/2010/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_1654845
_svi' = &$unknown_1654837
$unknown_1654818' = $unknown_1654818 - 4
formats' = 0
i' = 0
items' != 3
module' = &$unknown_1654854




Change Warning 7392.28491 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: