Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at themes.c:702

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2266.2272
Procedure: theme_init_module
Trace: View
Modified: Wed Sep 2 11:55: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/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_938050 != 0
&$unknown_938053 = 0
Postconditions
_g_boolean_var_' = 1
config' = $param_3
formats' = &$unknown_938050
module' = $param_2
n' = 0
rec' = 0
theme' = $param_1




Change Warning 2266.2272 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: