Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at themes.c:702

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7329.28422
Procedure: theme_init_module
Trace: view
Modified: Thu Nov 26 11:09:39 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/fe-common/core/themes.c
   Enter theme_init_module
 686 static void theme_init_module(THEME_REC *theme, const char *module,
 687                               CONFIG_REC *config) 
 688 {
 689         MODULE_THEME_REC *rec;
 690         FORMAT_REC *formats;
 691         int n;
 692  
 693         formats = g_hash_table_lookup(default_formats, module);
 694         g_return_if_fail(formats != NULL);
 695  
true696         rec = theme_module_create(theme, module);
 697  
 698         if (config != NULL)
 699                 theme_read_formats(theme, module, config, rec);
 700  
 701         /* expand the remaining formats */ 
rec <= 4095702         for (n = 0; n < rec->count; n++) {     /* Null Pointer Dereference */
Preconditions
&$unknown_566713 != 0
Postconditions
_g_boolean_var_' = 1
formats' = &$unknown_566713
n' = 0
rec' = 0




Change Warning 7329.28422 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: