Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7333.28426
Procedure: module_save
Trace: view
Modified: Thu Nov 26 11:09:40 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 module_save
 1103 static void module_save(const char *module, MODULE_THEME_REC *rec,
 1104                         THEME_SAVE_REC *data) 
 1105 {
 1106         CONFIG_NODE *fnode, *node;
 1107         FORMAT_REC *formats;
 1108         int n;
 1109  
 1110         formats = g_hash_table_lookup(default_formats, rec->name);
 1111         if (formats == NULL) return;
 1112  
 1113         fnode = config_node_traverse(data->config, "formats", TRUE);
 1114  
true1115         node = config_node_section(fnode, rec->name, NODE_TYPE_BLOCK);
 1116         for (n = 1; formats[n].def != NULL; n++) {
 1117                 if (rec->formats[n] != NULL) {
 1118                         config_node_set_str(data->config, node, formats[n].tag,
 1119                                             rec->formats[n]);
 1120                 } else if (data->save_all && formats[n].tag != NULL) {
 1121                         config_node_set_str(data->config, node, formats[n].tag,
 1122                                             formats[n].def);
 1123                 }
 1124         }
 1125  
node <= 40951126         if (node->value == NULL) {     /* Null Pointer Dereference */
Preconditions
data->save_all != 0
data->config->mainnode->type <= 3
data->config->mainnode->type >= 2
Postconditions
fnode' = 0
formats' = &$unknown_575203
node' = 0




Change Warning 7333.28426 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: